about summary refs log tree commit diff
path: root/app/serializers/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-03-07 05:58:24 +0100
committerGitHub <noreply@github.com>2018-03-07 05:58:24 +0100
commit89a52d6280e0643605613e507cd045ce17d7b625 (patch)
tree456c7620df4944988038b977e022d388419ae2af /app/serializers/activitypub
parente6520c027014aae9444dc58f8b3e7b618214a574 (diff)
Fix wrong target URIs in ActivityPub Add/Remove (#6668)
Diffstat (limited to 'app/serializers/activitypub')
-rw-r--r--app/serializers/activitypub/add_serializer.rb2
-rw-r--r--app/serializers/activitypub/remove_serializer.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/activitypub/add_serializer.rb b/app/serializers/activitypub/add_serializer.rb
index a5f091e37..c0906e8d0 100644
--- a/app/serializers/activitypub/add_serializer.rb
+++ b/app/serializers/activitypub/add_serializer.rb
@@ -19,6 +19,6 @@ class ActivityPub::AddSerializer < ActiveModel::Serializer
   end
 
   def target
-    account_collection_url(object, :featured)
+    account_collection_url(object.account, :featured)
   end
 end
diff --git a/app/serializers/activitypub/remove_serializer.rb b/app/serializers/activitypub/remove_serializer.rb
index c35ee916e..c2a5ae1b3 100644
--- a/app/serializers/activitypub/remove_serializer.rb
+++ b/app/serializers/activitypub/remove_serializer.rb
@@ -19,6 +19,6 @@ class ActivityPub::RemoveSerializer < ActiveModel::Serializer
   end
 
   def target
-    account_collection_url(object, :featured)
+    account_collection_url(object.account, :featured)
   end
 end