about summary refs log tree commit diff
path: root/app/presenters
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-16 10:28:55 +0200
committerGitHub <noreply@github.com>2017-07-16 10:28:55 +0200
commita6328fc1b17984af71efb9a1214437c8cdc5dfea (patch)
tree17fe12bf7a3c64c8e35bc86f72683b66cf364026 /app/presenters
parent35b868eeca3f9000d9de0ec232ad93f430563448 (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/presenters')
-rw-r--r--app/presenters/activitypub/collection_presenter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/presenters/activitypub/collection_presenter.rb b/app/presenters/activitypub/collection_presenter.rb
index 6bae2955e..631d87cd0 100644
--- a/app/presenters/activitypub/collection_presenter.rb
+++ b/app/presenters/activitypub/collection_presenter.rb
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 class ActivityPub::CollectionPresenter < ActiveModelSerializers::Model
-  attributes :id, :type, :current, :size, :items
+  attributes :id, :type, :size, :items
 end