|
|
|
@ -3,15 +3,14 @@
|
|
|
|
class ActivityPub::DeleteQuoteAuthorizationSerializer < ActivityPub::Serializer
|
|
|
|
class ActivityPub::DeleteQuoteAuthorizationSerializer < ActivityPub::Serializer
|
|
|
|
attributes :id, :type, :actor, :to
|
|
|
|
attributes :id, :type, :actor, :to
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: change the `object` to a `QuoteAuthorization` object instead of just the URI?
|
|
|
|
has_one :virtual_object, key: :object, serializer: ActivityPub::QuoteAuthorizationSerializer
|
|
|
|
attribute :virtual_object, key: :object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def id
|
|
|
|
def id
|
|
|
|
[ActivityPub::TagManager.instance.approval_uri_for(object, check_approval: false), '#delete'].join
|
|
|
|
[ActivityPub::TagManager.instance.approval_uri_for(object, check_approval: false), '#delete'].join
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def virtual_object
|
|
|
|
def virtual_object
|
|
|
|
ActivityPub::TagManager.instance.approval_uri_for(object, check_approval: false)
|
|
|
|
object
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def type
|
|
|
|
def type
|
|
|
|
|