]> cat aescling's git repositories - mastodon.git/commitdiff
Fix trying to PuSH-publish updates of remote removals
authorEugen <eugen@zeonfederated.com>
Tue, 29 Nov 2016 16:41:47 +0000 (17:41 +0100)
committerGitHub <noreply@github.com>
Tue, 29 Nov 2016 16:41:47 +0000 (17:41 +0100)
app/services/remove_status_service.rb

index 058fd3f18a1184897661ad65f9e132312addfee8..4e03661da6ee4dd59ff9ea77c10688698365d8c0 100644 (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