From 48aa456eb0bd99e0a5ae99a51630597263579c2d Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 17 Aug 2020 17:23:41 -0500 Subject: [Federation] Use plaintext article summaries for compat with standard Mastodon --- app/serializers/activitypub/note_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/serializers/activitypub') diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index b86ab932e..acadce1b2 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -55,7 +55,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer end def summary - return Formatter.instance.format(object) if title_present? + return Formatter.instance.format(object, plaintext: true) || Setting.outgoing_spoilers.presence if title_present? object.spoiler_text.presence || (instance_options[:allow_local_only] ? nil : Setting.outgoing_spoilers.presence) end -- cgit