commit: 0895ff414e73212e23c3d680846b5b8b7666bdfd
parent: de1f3aab868f8d18198438c405d0852c58f34e10
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Sun, 16 Oct 2016 19:14:23 +0200
Fix RemoveStatusService trying to send delete salmons on behalf of remote statuses
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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