From 2ca3fb1d21af1fc450fa4eb6b0419ac426f8feeb Mon Sep 17 00:00:00 2001 From: Joshua Rosenfeld Date: Thu, 30 Nov 2017 09:56:47 -0500 Subject: [PATCH] Remove thumb_url from Rocket.Chat Results in broken thumbnail appearing in all posts. --- lib/discourse_chat/provider/rocketchat/rocketchat_provider.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/discourse_chat/provider/rocketchat/rocketchat_provider.rb b/lib/discourse_chat/provider/rocketchat/rocketchat_provider.rb index cc45d52..f99c014 100644 --- a/lib/discourse_chat/provider/rocketchat/rocketchat_provider.rb +++ b/lib/discourse_chat/provider/rocketchat/rocketchat_provider.rb @@ -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), mrkdwn_in: ["text"], title: "#{topic.title} #{(category == '[uncategorized]') ? '' : category} #{topic.tags.present? ? topic.tags.map(&:name).join(', ') : ''}", - title_link: post.full_url, - thumb_url: post.full_url + title_link: post.full_url } message[:attachments].push(summary)