]> cat aescling's git repositories - mastodon.git/commitdiff
Fix RemoveStatusService trying to send delete salmons on behalf of remote statuses
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 16 Oct 2016 17:14:23 +0000 (19:14 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 16 Oct 2016 17:14:23 +0000 (19:14 +0200)
app/services/remove_status_service.rb

index b8d6755b1b3a74720869a05334a8ebbe1159e912..0b78b131a0bb95cbcff0d5a855a27b9f7804b189 100644 (file)
@@ -34,6 +34,7 @@ class RemoveStatusService < BaseService
   end
 
   def send_delete_salmon(account, status)
+    return unless status.local?
     NotificationWorker.perform_async(status.stream_entry.id, account.id)
   end