about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 00:49:06 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 00:49:06 -0600
commitbf2ea2e3ac7cf142a0c91cadd926c23805ea2528 (patch)
tree7d7ac80fffd5a6a8d439f47a3b367fde47898bff /app
parent1cea6f8f58202f56bf3cde27de38f549c4b1f0c2 (diff)
make sure hidden posts are not streamed into timelines other than the author's
Diffstat (limited to 'app')
-rw-r--r--app/services/fan_out_on_write_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb
index 47f93e233..4d868b699 100644
--- a/app/services/fan_out_on_write_service.rb
+++ b/app/services/fan_out_on_write_service.rb
@@ -7,7 +7,7 @@ class FanOutOnWriteService < BaseService
     raise Mastodon::RaceConditionError if status.visibility.nil?
 
     deliver_to_self(status) if status.account.local?
-    return if delayed
+    return if delayed || status.hidden?
 
     render_anonymous_payload(status)