Fix outgoing note contains nyaized text
This commit is contained in:
parent
64dfd33e3f
commit
6992413720
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user