From 1078f8089e08083176397a9688c24ca040ee111f Mon Sep 17 00:00:00 2001 From: Francis Brunelle Date: Wed, 27 Dec 2017 03:35:32 -0500 Subject: [PATCH] use SiteSetting.chat_integration_matrix_excerpt_length for the Matrix provider (#17) --- lib/discourse_chat/provider/matrix/matrix_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_chat/provider/matrix/matrix_provider.rb b/lib/discourse_chat/provider/matrix/matrix_provider.rb index 5e77ec0..21dd5b5 100644 --- a/lib/discourse_chat/provider/matrix/matrix_provider.rb +++ b/lib/discourse_chat/provider/matrix/matrix_provider.rb @@ -47,7 +47,7 @@ module DiscourseChat formatted_body: I18n.t('chat_integration.provider.matrix.formatted_message', user: display_name, post_url: post.full_url, title: post.topic.title, - excerpt: post.excerpt(SiteSetting.chat_integration_discord_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true)) + excerpt: post.excerpt(SiteSetting.chat_integration_matrix_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true)) }