From 0895ff414e73212e23c3d680846b5b8b7666bdfd Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 16 Oct 2016 19:14:23 +0200 Subject: [PATCH] Fix RemoveStatusService trying to send delete salmons on behalf of remote statuses --- app/services/remove_status_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index b8d6755b1..0b78b131a 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -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