Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-03-31 10:36:23 +02:00
4 changed files with 12 additions and 11 deletions

View File

@ -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) : []), content_type: status.content_type)