Fix #6657 - Use target instead of origin in Remove activity (#6664)

This commit is contained in:
Eugen Rochko
2018-03-07 03:54:46 +01:00
committed by GitHub
parent 913a38111f
commit e6520c0270
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
class ActivityPub::RemoveSerializer < ActiveModel::Serializer
include RoutingHelper
attributes :type, :actor, :origin
attributes :type, :actor, :target
attribute :proper_object, key: :object
def type
@ -18,7 +18,7 @@ class ActivityPub::RemoveSerializer < ActiveModel::Serializer
ActivityPub::TagManager.instance.uri_for(object)
end
def origin
def target
account_collection_url(object, :featured)
end
end