about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-07-25 01:51:27 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:15 -0500
commitd6f8631cb191038bc81a6537f03e18400cdcee37 (patch)
tree4c14ca17fc59b154cdebb6dfc2871d40166bf81f /app/serializers
parent9bd0bb4e260d1dee975f4b4e50ca52c04e7c317f (diff)
[Bug] Use correct key name for ActivityPub object titles
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/activitypub/note_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/activitypub/note_serializer.rb b/app/serializers/activitypub/note_serializer.rb
index 75a38e9b5..da77414ca 100644
--- a/app/serializers/activitypub/note_serializer.rb
+++ b/app/serializers/activitypub/note_serializer.rb
@@ -12,7 +12,7 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
              :conversation
 
   attribute :updated
-  attribute :title, if: :title_present?
+  attribute :title, key: :name, if: :title_present?
 
   attribute :content
   attribute :content_map, if: :language?