Fix outgoing note contains nyaized text

This commit is contained in:
kyori19 2022-05-10 09:48:44 +00:00
parent 64dfd33e3f
commit 6992413720
No known key found for this signature in database
GPG Key ID: CB37D0651E7F52AA
2 changed files with 3 additions and 3 deletions

View File

@ -14,12 +14,12 @@ module FormattingHelper
end
module_function :extract_status_plain_text
def status_content_format(status)
def status_content_format(status, outgoing: false)
html_aware_format(
status.text,
status.local?,
preloaded_accounts: [status.account] + (status.respond_to?(:active_mentions) ? status.active_mentions.map(&:account) : []),
nyaize: status.account.cat
nyaize: !outgoing && status.account.cat,
)
end

View File

@ -41,7 +41,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
end
def content
status_content_format(object)
status_content_format(object, outgoing: true)
end
def content_map