about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-17 13:17:37 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commitf8069bc8298d35304d837cca4401183c3a6726a3 (patch)
treecbed4c240c25430f96e582cc261e07a269b088c5 /app/services
parent772fef7d30271d1451e11f4037ec7fdfbd44ccdd (diff)
[Timelines] Always deliver remote public posts to Tavern Mode timeline
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fan_out_on_write_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb
index 8a37c7695..c4d57c34b 100644
--- a/app/services/fan_out_on_write_service.rb
+++ b/app/services/fan_out_on_write_service.rb
@@ -35,7 +35,7 @@ class FanOutOnWriteService < BaseService
     return if !status.public_visibility? || (status.reply? && status.in_reply_to_account_id != status.account_id)
 
     deliver_to_media(status) if status.media_attachments.any?
-    deliver_to_public(status) if status.local?
+    deliver_to_public(status, true)
   end
 
   private
@@ -88,7 +88,7 @@ class FanOutOnWriteService < BaseService
     end
   end
 
-  def deliver_to_public(status)
+  def deliver_to_public(status, tavern = false)
     key = "timeline:public:#{status.id}"
     return if Redis.current.get(key)
 
@@ -96,7 +96,7 @@ class FanOutOnWriteService < BaseService
 
     Redis.current.set(key, 1, ex: 6.hours)
 
-    Redis.current.publish('timeline:public', @payload)
+    Redis.current.publish('timeline:public', @payload) if status.local? || !tavern
     if status.local?
       Redis.current.publish('timeline:public:local', @payload)
     else