Skip to content
Snippets Groups Projects
Commit 05b0c985 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Send "delete" Salmons to remote mentioned accounts on status removal

Fixes #27
parent 4f0e3b1b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment