From 1588a4af0c4b0dec67af547e895594c723d178e3 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 22 May 2018 11:32:21 +0200 Subject: Don't leak reblogs of local-only toots Co-authored-by: Fire Demon --- app/models/status.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/models/status.rb') diff --git a/app/models/status.rb b/app/models/status.rb index 657fcaca0..4a83a08c8 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -537,7 +537,10 @@ class Status < ApplicationRecord end def set_locality - self.local_only = marked_local_only? if account.domain.nil? && !attribute_changed?(:local_only) + if account.domain.nil? && !attribute_changed?(:local_only) + self.local_only = marked_local_only? + end + self.local_only = reblog.local_only if reblog? end def set_conversation_perms -- cgit