diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-31 00:49:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-31 00:49:24 +0200 |
commit | ef196c913c77338be5ebb1e02af2f6225f857080 (patch) | |
tree | 2640d4bb0fee2c0d62183a64b0b4d0857c75f0d6 /app/helpers | |
parent | 8c7223f4eac80b5725485be742d3fa2c984f4670 (diff) |
Fix error MethodError in Chewy::Strategy::Sidekiq::Worker (#17912)
Also refactor a bit to reduce code duplication.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/formatting_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/formatting_helper.rb b/app/helpers/formatting_helper.rb index e11156999..a58dd608f 100644 --- a/app/helpers/formatting_helper.rb +++ b/app/helpers/formatting_helper.rb @@ -12,6 +12,7 @@ module FormattingHelper def extract_status_plain_text(status) PlainTextFormatter.new(status.text, status.local?).to_s end + module_function :extract_status_plain_text def status_content_format(status) html_aware_format(status.text, status.local?, preloaded_accounts: [status.account] + (status.respond_to?(:active_mentions) ? status.active_mentions.map(&:account) : [])) |