From 9d91081f0c398e9f812b5a9677b345d529cf09ab Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 20 Jul 2017 12:27:34 +0100 Subject: [PATCH] Fix the post URL for telegram messages --- lib/discourse_chat/provider/telegram/telegram_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_chat/provider/telegram/telegram_provider.rb b/lib/discourse_chat/provider/telegram/telegram_provider.rb index 2bf505a..f85cbd4 100644 --- a/lib/discourse_chat/provider/telegram/telegram_provider.rb +++ b/lib/discourse_chat/provider/telegram/telegram_provider.rb @@ -70,7 +70,7 @@ module DiscourseChat return I18n.t( "chat_integration.provider.telegram.message", user: display_name, - post_url: "https://meta.discourse.org", + post_url: post.full_url, title: CGI::escapeHTML(topic.title), post_excerpt: post.excerpt(SiteSetting.chat_integration_telegram_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true), )