From: Eugen Date: Tue, 29 Nov 2016 16:41:47 +0000 (+0100) Subject: Fix trying to PuSH-publish updates of remote removals X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=1e99a2bb033e30815eb7fedd122d99071d0b2d79;p=mastodon.git Fix trying to PuSH-publish updates of remote removals --- diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index 058fd3f18..4e03661da 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -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