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/batched_remove_status_service.rb | |
parent | 1f565e335bf0fb9de1581958fe6e3df45aee2d8b (diff) |
[Timelines] Include local posts in Rowdy Tavern mode
Diffstat (limited to 'app/services/batched_remove_status_service.rb')
-rw-r--r-- | app/services/batched_remove_status_service.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/app/services/batched_remove_status_service.rb b/app/services/batched_remove_status_service.rb index 707672ee0..ef68dc5bc 100644 --- a/app/services/batched_remove_status_service.rb +++ b/app/services/batched_remove_status_service.rb @@ -73,18 +73,12 @@ class BatchedRemoveStatusService < BaseService redis.pipelined do 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) if status.media_attachments.any? 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 @tags[status.id].each do |hashtag| |