mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-06 09:51:24 +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!
|
ActivityPub::Forwarder.new(@account, @json, @quote.status).forward!
|
||||||
@quote.reject!
|
@quote.reject!
|
||||||
|
DistributionWorker.perform_async(@quote.status_id, { 'update' => true })
|
||||||
end
|
end
|
||||||
|
|
||||||
def forwarder
|
def forwarder
|
||||||
|
|
|
@ -8,11 +8,18 @@ class RevokeQuoteService < BaseService
|
||||||
@account = quote.quoted_account
|
@account = quote.quoted_account
|
||||||
|
|
||||||
@quote.reject!
|
@quote.reject!
|
||||||
|
distribute_update!
|
||||||
distribute_stamp_deletion!
|
distribute_stamp_deletion!
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
def distribute_update!
|
||||||
|
return if @quote.status_id.nil?
|
||||||
|
|
||||||
|
DistributionWorker.perform_async(@quote.status_id, { 'update' => true })
|
||||||
|
end
|
||||||
|
|
||||||
def distribute_stamp_deletion!
|
def distribute_stamp_deletion!
|
||||||
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
ActivityPub::DeliveryWorker.push_bulk(inboxes, limit: 1_000) do |inbox_url|
|
||||||
[signed_activity_json, @account.id, inbox_url]
|
[signed_activity_json, @account.id, inbox_url]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user