diff options
author | Nathan Friend <nathan@gitlab.com> | 2019-08-13 22:04:56 +0300 |
---|---|---|
committer | Nathan Friend <nathan@gitlab.com> | 2019-08-13 22:04:56 +0300 |
commit | 5112d92c9bbd2c5ba270e033b5eb0252f574a814 (patch) | |
tree | 3f80ed1ca3d0d53c1999d8ae53eacf69823a332b /app/models/project_services | |
parent | df35d772c655587eecbe7b3e387c8b8bc287b23c (diff) |
Fix project image in Slack pipeline notifications
This commit fixes the project avatar images that are rendered in the
footer of Slack pipeline notifications. Previously, the image URLs
provided to Slack were relative URLs; now they are absolute.
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/chat_message/pipeline_message.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/chat_message/pipeline_message.rb b/app/models/project_services/chat_message/pipeline_message.rb index 4edf263433f..a3793d9937b 100644 --- a/app/models/project_services/chat_message/pipeline_message.rb +++ b/app/models/project_services/chat_message/pipeline_message.rb @@ -68,7 +68,7 @@ module ChatMessage title_link: pipeline_url, fields: attachments_fields, footer: project.name, - footer_icon: project.avatar_url, + footer_icon: project.avatar_url(only_path: false), ts: finished_at }] end |