From 17ce7abdb87dc3a4bd174a293e64ef393d80e6fb Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 25 Jul 2020 01:53:36 -0500 Subject: [Bug] Treat as Article if a title field is present --- app/serializers/activitypub/note_serializer.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/serializers/activitypub') diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb index da77414ca..fd40d1f50 100644 --- a/app/serializers/activitypub/note_serializer.rb +++ b/app/serializers/activitypub/note_serializer.rb @@ -40,7 +40,13 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer end def type - object.preloadable_poll ? 'Question' : 'Note' + if object.preloadable_poll + 'Question' + elsif title_present? + 'Article' + else + 'Note' + end end def summary -- cgit