diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-17 10:50:48 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-17 10:50:48 -0500 |
commit | 4a1b8bcf34ce834ee8c30f1ac94c29f4e56a2b41 (patch) | |
tree | 7b807907331cdaa179365d1e95a5519365e5420e /app/services/remove_status_service.rb | |
parent | 1f565e335bf0fb9de1581958fe6e3df45aee2d8b (diff) |
[Timelines] Include local posts in Rowdy Tavern mode
Diffstat (limited to 'app/services/remove_status_service.rb')
-rw-r--r-- | app/services/remove_status_service.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index 57120e38f..ca7f830ec 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -156,22 +156,16 @@ class RemoveStatusService < BaseService return unless @status.distributable? redis.publish('timeline:public', @payload) - if @status.local? - redis.publish('timeline:public:local', @payload) - else - redis.publish('timeline:public:remote', @payload) - end + redis.publish('timeline:public:local', @payload) if @status.local? + redis.publish('timeline:public:remote', @payload) end def remove_from_media return unless @status.distributable? redis.publish('timeline:public:media', @payload) - if @status.local? - redis.publish('timeline:public:local:media', @payload) - else - redis.publish('timeline:public:remote:media', @payload) - end + redis.publish('timeline:public:local:media', @payload) if @status.local? + redis.publish('timeline:public:remote:media', @payload) end def remove_from_direct |