Send "delete" Salmons to remote mentioned accounts on status removal
Fixes #27
This commit is contained in:
parent
4f0e3b1b19
commit
05b0c985b4
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class RemoveStatusService < BaseService
|
||||||
end
|
end
|
||||||
|
|
||||||
def send_delete_salmon(account, status)
|
def send_delete_salmon(account, status)
|
||||||
# TODO
|
SendInteractionService.new.(status.stream_entry, account)
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_reblogs(status)
|
def remove_reblogs(status)
|
||||||
|
@ -45,7 +45,7 @@ class RemoveStatusService < BaseService
|
||||||
|
|
||||||
def unpush(type, receiver, status)
|
def unpush(type, receiver, status)
|
||||||
redis.zremrangebyscore(FeedManager.instance.key(type, receiver.id), status.id, status.id)
|
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
|
end
|
||||||
|
|
||||||
def redis
|
def redis
|
||||||
|
|
Loading…
Reference in a new issue