diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-21 21:08:30 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:44:01 -0500 |
commit | 03338243d28df8ecca77785c77214260ca0c32c9 (patch) | |
tree | 5dff6b2a6cf9a86f02e399e5c9d232554180875a /app/services | |
parent | 63e35bf33177b95f7ba237a7d6c7d933a900db48 (diff) |
[Privacy, Preemptive] Make sure only published posts can ever be distributed to local timelines other than author's
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/fan_out_on_write_service.rb | 2 |
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 f16b799bd..e642005d9 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 only_to_self + return if only_to_self || !status.published? render_anonymous_payload(status) |