2
0

Fix deletion of posts quoting soft-deleted local post (#36461)

This commit is contained in:
Claire
2025-10-14 17:15:38 +02:00
committed by GitHub
parent 3232eee358
commit fd516347cb
2 changed files with 21 additions and 0 deletions

View File

@@ -21,6 +21,11 @@ class RevokeQuoteService < BaseService
end
def distribute_stamp_deletion!
# It is possible the quoted status has been soft-deleted.
# In this case, `signed_activity_json` would fail, but we can just ignore
# that, as we have already federated deletion.
return if @quote.quoted_status.nil?
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
[signed_activity_json, @account.id, inbox_url]
end