mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07: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
|
@status.preview_cards << @card
|
||||||
Rails.cache.delete(@status)
|
Rails.cache.delete(@status)
|
||||||
Trends.links.register(@status)
|
Trends.links.register(@status)
|
||||||
DistributionWorker.perform_async(@status.id)
|
DistributionWorker.perform_async(@status.id, { update: true })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ RSpec.describe FetchLinkCardService, type: :service do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'redistributes status' do
|
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
|
end
|
||||||
|
|
||||||
context 'with a local status' do
|
context 'with a local status' do
|
||||||
|
|
Loading…
Reference in a new issue