Commit 5b3a9d6b authored by Kukovskii Vladimir's avatar Kukovskii Vladimir

Fix fetch_attachment_title method of Hangouts Chat service

parent d63a0a07
...@@ -58,8 +58,7 @@ class HangoutsChatService < ChatNotificationService ...@@ -58,8 +58,7 @@ class HangoutsChatService < ChatNotificationService
end end
def fetch_attachment_title(attachment) def fetch_attachment_title(attachment)
return nil if attachment[:title].nil? return attachment[:title] unless attachment[:title_link]
return attachment[:title] if attachment[:title_link].nil?
"<#{attachment[:title_link]}|#{attachment[:title]}>" "<#{attachment[:title_link]}|#{attachment[:title]}>"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment