Make sure Delete reaches collection owner (#38399)

This commit is contained in:
David Roetzel
2026-03-25 16:28:20 +01:00
committed by GitHub
parent e3dfb7ddd6
commit 2a4b205c75
2 changed files with 6 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ class RevokeCollectionItemService < BaseService
def call(collection_item)
@collection_item = collection_item
@account = collection_item.account
@collection = @collection_item.collection
@collection_item.revoke!
@@ -15,7 +16,8 @@ class RevokeCollectionItemService < BaseService
private
def distribute_stamp_deletion!
ActivityPub::AccountRawDistributionWorker.perform_async(signed_activity_json, @collection_item.collection.account_id)
ActivityPub::DeliveryWorker.perform_async(signed_activity_json, @account.id, @collection.account.inbox_url)
ActivityPub::AccountRawDistributionWorker.perform_async(signed_activity_json, @collection.account_id)
end
def signed_activity_json