Fix fetch_attachment_title method of Hangouts Chat service
This commit is contained in:
parent
d63a0a07f4
commit
5b3a9d6bc2
|
@ -58,8 +58,7 @@ class HangoutsChatService < ChatNotificationService
|
|||
end
|
||||
|
||||
def fetch_attachment_title(attachment)
|
||||
return nil if attachment[:title].nil?
|
||||
return attachment[:title] if attachment[:title_link].nil?
|
||||
return attachment[:title] unless attachment[:title_link]
|
||||
|
||||
"<#{attachment[:title_link]}|#{attachment[:title]}>"
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue