diff --git a/app/serializers/activitypub/add_serializer.rb b/app/serializers/activitypub/add_serializer.rb index a5f091e3792..c0906e8d036 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 c35ee916e64..c2a5ae1b3a8 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