# frozen_string_literal: true
class ActivityPub::DeleteSerializer < ActivityPub::Serializer
class TombstoneSerializer < ActivityPub::Serializer
context_extensions :atom_uri
attributes :id, :type, :atom_uri
def id
ActivityPub::TagManager.instance.uri_for(object)
end
def type
'Tombstone'
def atom_uri
OStatus::TagManager.instance.uri_for(object)
attributes :id, :type, :actor, :to
has_one :object, serializer: TombstoneSerializer
[ActivityPub::TagManager.instance.uri_for(object), '#delete'].join
'Delete'
def actor
ActivityPub::TagManager.instance.uri_for(object.account)
def to
[ActivityPub::TagManager::COLLECTIONS[:public]]