Add service to revoke inclusion in a Collection (#38026)

This commit is contained in:
David Roetzel
2026-03-02 10:16:41 +00:00
committed by GitHub
parent 6ab24de659
commit 2f65701920
5 changed files with 105 additions and 0 deletions
@@ -0,0 +1,25 @@
# frozen_string_literal: true
class ActivityPub::DeleteFeatureAuthorizationSerializer < ActivityPub::Serializer
include RoutingHelper
attributes :id, :type, :actor, :to
has_one :object, serializer: ActivityPub::FeatureAuthorizationSerializer
def id
[ap_account_feature_authorization_url(object.account_id, object), '#delete'].join
end
def type
'Delete'
end
def actor
ActivityPub::TagManager.instance.uri_for(object.account)
end
def to
[ActivityPub::TagManager::COLLECTIONS[:public]]
end
end