diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-12 18:33:16 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-12 18:33:34 +0200 |
commit | 05b0c985b4d4b313e75ae506fb43b5690afade8d (patch) | |
tree | e28f1db21c681e904bdd55d1a6d06f3418982db2 /app | |
parent | 4f0e3b1b19b2ba0238ab0e5254829edd83734e5b (diff) |
Send "delete" Salmons to remote mentioned accounts on status removal
Fixes #27
Diffstat (limited to 'app')
-rw-r--r-- | app/services/remove_status_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index e48a43be0..681c6843b 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -34,7 +34,7 @@ class RemoveStatusService < BaseService end def send_delete_salmon(account, status) - # TODO + SendInteractionService.new.(status.stream_entry, account) end def remove_reblogs(status) @@ -45,7 +45,7 @@ class RemoveStatusService < BaseService def unpush(type, receiver, status) redis.zremrangebyscore(FeedManager.instance.key(type, receiver.id), status.id, status.id) - ActionCable.server.broadcast("timeline:#{receiver.id}", type: 'delete', id: status.id) + FeedManager.instance.broadcast(receiver.id, type: 'delete', id: status.id) end def redis |