diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-16 10:28:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-16 10:28:55 +0200 |
commit | a6328fc1b17984af71efb9a1214437c8cdc5dfea (patch) | |
tree | 17fe12bf7a3c64c8e35bc86f72683b66cf364026 /app/serializers/activitypub/collection_serializer.rb | |
parent | 35b868eeca3f9000d9de0ec232ad93f430563448 (diff) |
Minor ActivityPub JSON fixes (#4214)
- Objects must have attributedTo instead of actor - The current attribute belongs to CollectionPage, not Collection
Diffstat (limited to 'app/serializers/activitypub/collection_serializer.rb')
-rw-r--r-- | app/serializers/activitypub/collection_serializer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/serializers/activitypub/collection_serializer.rb b/app/serializers/activitypub/collection_serializer.rb index baaba7654..d01dead28 100644 --- a/app/serializers/activitypub/collection_serializer.rb +++ b/app/serializers/activitypub/collection_serializer.rb @@ -6,8 +6,7 @@ class ActivityPub::CollectionSerializer < ActiveModel::Serializer super end - attributes :id, :type, :total_items, - :current + attributes :id, :type, :total_items has_many :items, key: :ordered_items |