mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Fix quote revocation not being streamed (#35710)
This commit is contained in:
parent
e615d2f069
commit
d4e0784182
|
@ -61,6 +61,7 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity
|
|||
|
||||
ActivityPub::Forwarder.new(@account, @json, @quote.status).forward!
|
||||
@quote.reject!
|
||||
DistributionWorker.perform_async(@quote.status_id, { 'update' => true })
|
||||
end
|
||||
|
||||
def forwarder
|
||||
|
|
|
@ -8,11 +8,18 @@ class RevokeQuoteService < BaseService
|
|||
@account = quote.quoted_account
|
||||
|
||||
@quote.reject!
|
||||
distribute_update!
|
||||
distribute_stamp_deletion!
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def distribute_update!
|
||||
return if @quote.status_id.nil?
|
||||
|
||||
DistributionWorker.perform_async(@quote.status_id, { 'update' => true })
|
||||
end
|
||||
|
||||
def distribute_stamp_deletion!
|
||||
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
||||
[signed_activity_json, @account.id, inbox_url]
|
||||
|
|
Loading…
Reference in New Issue
Block a user