Send streaming API delete to people mentioned in status (#5103)

- Previously they wouldn't receive it unless they were author's
  followers
- Skip unpush from public/hashtag timelines if status wasn't
  public in the first place
This commit is contained in:
Eugen Rochko 2017-09-26 00:29:29 +02:00 committed by GitHub
parent 3b60832214
commit 91e5b0dfdb
2 changed files with 13 additions and 0 deletions

View file

@ -84,6 +84,8 @@ class BatchedRemoveStatusService < BaseService
end
def unpush_from_public_timelines(status)
return unless status.public_visibility?
payload = @json_payloads[status.id]
redis.pipelined do