mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 18:45:41 +01:00
Send update as status.update
This commit is contained in:
parent
2cf9ebe9b6
commit
6ad46f2b18
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue