From 03338243d28df8ecca77785c77214260ca0c32c9 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Tue, 21 Jul 2020 21:08:30 -0500 Subject: [Privacy, Preemptive] Make sure only published posts can ever be distributed to local timelines other than author's --- app/services/fan_out_on_write_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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) -- cgit