about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2016-11-29 17:41:47 +0100
committerGitHub <noreply@github.com>2016-11-29 17:41:47 +0100
commit1e99a2bb033e30815eb7fedd122d99071d0b2d79 (patch)
tree85d3a5d07ff956d463bc3023f5e675dd0b43ceef
parent7e90772c92fd121dfe0f1eb788fb09eb3df4cbc8 (diff)
Fix trying to PuSH-publish updates of remote removals
-rw-r--r--app/services/remove_status_service.rb6
1 files changed, 4 insertions, 2 deletions
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