Browse Source

Fix wrong target URIs in ActivityPub Add/Remove (#6668)

pull/4/head
Eugen Rochko 3 years ago
committed by GitHub
parent
commit
89a52d6280
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/serializers/activitypub/add_serializer.rb
  2. +1
    -1
      app/serializers/activitypub/remove_serializer.rb

+ 1
- 1
app/serializers/activitypub/add_serializer.rb View File

@ -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

+ 1
- 1
app/serializers/activitypub/remove_serializer.rb View File

@ -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

Loading…
Cancel
Save