mirror of
https://github.com/mastodon/mastodon.git
synced 2025-10-05 16:42:47 +00:00
Fix spurious notification of local boosters and quoters when updating quote policy (#36299)
This commit is contained in:
parent
a6236148d8
commit
45219dbf64
|
@ -22,7 +22,7 @@ class Api::V1::Statuses::InteractionPoliciesController < Api::V1::Statuses::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def broadcast_updates!
|
def broadcast_updates!
|
||||||
DistributionWorker.perform_async(@status.id, { 'update' => true })
|
DistributionWorker.perform_async(@status.id, { 'update' => true, 'skip_notifications' => true })
|
||||||
ActivityPub::StatusUpdateDistributionWorker.perform_async(@status.id, { 'updated_at' => Time.now.utc.iso8601 })
|
ActivityPub::StatusUpdateDistributionWorker.perform_async(@status.id, { 'updated_at' => Time.now.utc.iso8601 })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,7 +60,7 @@ RSpec.describe 'Interaction policies' do
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(DistributionWorker)
|
expect(DistributionWorker)
|
||||||
.to have_enqueued_sidekiq_job(status.id, { 'update' => true })
|
.to have_enqueued_sidekiq_job(status.id, { 'update' => true, 'skip_notifications' => true })
|
||||||
expect(ActivityPub::StatusUpdateDistributionWorker)
|
expect(ActivityPub::StatusUpdateDistributionWorker)
|
||||||
.to have_enqueued_sidekiq_job(status.id, { 'updated_at' => anything })
|
.to have_enqueued_sidekiq_job(status.id, { 'updated_at' => anything })
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user