Remove thumb_url from Mattermost, and restore accidental deletion from Slack

This commit is contained in:
David Taylor 2017-09-09 23:08:45 +01:00
parent 438a9d92fe
commit 6a976c4d66
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,6 @@ module DiscourseChat
text: post.excerpt(SiteSetting.chat_integration_mattermost_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true),
title: "#{topic.title} #{(category == '[uncategorized]') ? '' : category} #{topic.tags.present? ? topic.tags.map(&:name).join(', ') : ''}",
title_link: post.full_url,
thumb_url: post.full_url,
}
message[:attachments].push(summary)

View File

@ -53,7 +53,8 @@ module DiscourseChat::Provider::SlackProvider
text: excerpt(post),
mrkdwn_in: ["text"],
title: "#{topic.title} #{(category == '[uncategorized]') ? '' : category} #{topic.tags.present? ? topic.tags.map(&:name).join(', ') : ''}",
title_link: post.full_url
title_link: post.full_url,
thumb_url: post.full_url
}
message[:attachments].push(summary)