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/revoke_status_service.rb | |
parent | 1f565e335bf0fb9de1581958fe6e3df45aee2d8b (diff) |
[Timelines] Include local posts in Rowdy Tavern mode
Diffstat (limited to 'app/services/revoke_status_service.rb')
-rw-r--r-- | app/services/revoke_status_service.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/app/services/revoke_status_service.rb b/app/services/revoke_status_service.rb index 95810acd2..f4762631c 100644 --- a/app/services/revoke_status_service.rb +++ b/app/services/revoke_status_service.rb @@ -74,22 +74,16 @@ class RevokeStatusService < BaseService return if @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 if @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 |