2
0

Prepend “RE: <url>” fallback link to Mastodon-authored quote posts (#35971)

This commit is contained in:
Claire
2025-09-03 11:35:44 +02:00
committed by GitHub
parent 927468bce5
commit 624c024766
3 changed files with 22 additions and 1 deletions

View File

@@ -27,7 +27,9 @@ module FormattingHelper
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) : []))
quoted_status = status.quote&.quoted_status if status.local?
html_aware_format(status.text, status.local?, preloaded_accounts: [status.account] + (status.respond_to?(:active_mentions) ? status.active_mentions.map(&:account) : []), quoted_status: quoted_status)
end
def rss_status_content_format(status)