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