Remove thumb_url from Rocket.Chat

Results in broken thumbnail appearing in all posts.
This commit is contained in:
Joshua Rosenfeld 2017-11-30 09:56:47 -05:00 committed by GitHub
parent da9ee8dcb5
commit 2ca3fb1d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ module DiscourseChat::Provider::RocketchatProvider
text: post.excerpt(SiteSetting.chat_integration_rocketchat_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true), text: post.excerpt(SiteSetting.chat_integration_rocketchat_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true),
mrkdwn_in: ["text"], mrkdwn_in: ["text"],
title: "#{topic.title} #{(category == '[uncategorized]') ? '' : category} #{topic.tags.present? ? topic.tags.map(&:name).join(', ') : ''}", 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) message[:attachments].push(summary)