Make rubocop happy.

This commit is contained in:
Guo Xiang Tan 2020-06-17 15:45:10 +08:00
parent da9106127a
commit 424c477043
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ module DiscourseChat::Provider::SlackProvider
end end
def self.excerpt(post, max_length = SiteSetting.chat_integration_slack_excerpt_length) def self.excerpt(post, max_length = SiteSetting.chat_integration_slack_excerpt_length)
doc = Nokogiri::HTML.fragment(post.excerpt(max_length, doc = Nokogiri::HTML5.fragment(post.excerpt(max_length,
remap_emoji: true, remap_emoji: true,
keep_onebox_source: true keep_onebox_source: true
)) ))