Add support for setting Content Warning for CW-less outgoing toots
This commit is contained in:
@ -35,7 +35,11 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
|
||||
end
|
||||
|
||||
def summary
|
||||
object.spoiler_text.presence
|
||||
object.spoiler_text.presence || Setting.outgoing_spoilers.presence
|
||||
end
|
||||
|
||||
def sensitive
|
||||
object.sensitive || Setting.outgoing_spoilers.present?
|
||||
end
|
||||
|
||||
def content
|
||||
|
Reference in New Issue
Block a user