mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 15:05:07 +00:00
Send update as status.update
This commit is contained in:
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…
Reference in New Issue
Block a user