Fix trying to PuSH-publish updates of remote removals

lolsob-rspec
Eugen 2016-11-29 17:41:47 +01:00 committed by GitHub
parent bee7aeaea5
commit c0bb1ed7c5
1 changed files with 4 additions and 2 deletions

View File

@ -11,8 +11,10 @@ class RemoveStatusService < BaseService
status.destroy!
HubPingWorker.perform_async(status.account.id)
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
if status.account.local?
HubPingWorker.perform_async(status.account.id)
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
end
end
private