mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-28 11:09:37 +00:00
Fix backup archive including outgoing-only content warnings
This commit is contained in:
parent
9e04b9d8df
commit
ddcd9fe9f0
|
@ -35,11 +35,11 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
|||
end
|
||||
|
||||
def summary
|
||||
object.spoiler_text.presence || Setting.outgoing_spoilers.presence
|
||||
object.spoiler_text.presence || (instance_options[:allow_local_only] ? nil : Setting.outgoing_spoilers.presence)
|
||||
end
|
||||
|
||||
def sensitive
|
||||
object.sensitive || Setting.outgoing_spoilers.present?
|
||||
object.sensitive || (!instance_options[:allow_local_only] && Setting.outgoing_spoilers.present?)
|
||||
end
|
||||
|
||||
def content
|
||||
|
|
Loading…
Reference in a new issue