Send update as status.update

pull/26613/head
Christian Schmidt 2 years ago
parent 2cf9ebe9b6
commit 6ad46f2b18

@ -67,7 +67,7 @@ class FetchLinkCardService < BaseService
@status.preview_cards << @card
Rails.cache.delete(@status)
Trends.links.register(@status)
DistributionWorker.perform_async(@status.id)
DistributionWorker.perform_async(@status.id, { update: true })
end
end

@ -41,7 +41,7 @@ RSpec.describe FetchLinkCardService, type: :service do
end
it 'redistributes status' do
expect(DistributionWorker).to have_received(:perform_async).with(status.id)
expect(DistributionWorker).to have_received(:perform_async).with(status.id, { update: true })
end
context 'with a local status' do

Loading…
Cancel
Save