diff options
author | Reverite <github@reverite.sh> | 2019-06-27 21:10:01 -0700 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-06-27 21:10:01 -0700 |
commit | 9861df046853b71370cede86afbba1a371714756 (patch) | |
tree | 38416f38dfc2a2349b7a5df20646bb7d0f51361f /app/services/remove_status_service.rb | |
parent | 2d396aa3a0bf2674194b9f4c0e0a1052b8d23a06 (diff) | |
parent | ca17bae904783dfb1f4899a533d28a79da0c6fe9 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/services/remove_status_service.rb')
-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 98972fc70..9d5d0fc14 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -48,6 +48,7 @@ class RemoveStatusService < BaseService def remove_from_self FeedManager.instance.unpush_from_home(@account, @status) + FeedManager.instance.unpush_from_direct(@account, @status) if @status.direct_visibility? end def remove_from_followers @@ -159,9 +160,8 @@ class RemoveStatusService < BaseService def remove_from_direct @mentions.each do |mention| - Redis.current.publish("timeline:direct:#{mention.account.id}", @payload) if mention.account.local? + FeedManager.instance.unpush_from_direct(mention.account, @status) if mention.account.local? end - Redis.current.publish("timeline:direct:#{@account.id}", @payload) if @account.local? end def lock_options |