From 0ed210cd5b8c6d3b743fd0e320c4705fa6a08d34 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Mon, 26 Aug 2019 19:33:00 +0200 Subject: [Privacy, Port: glitch-soc@0898ff9] Set replies to local-only toots as local-only unless explicitly specified otherwise Co-authored-by: Fire Demon --- app/models/status.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 4a83a08c8..164c6cb8e 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -538,8 +538,9 @@ class Status < ApplicationRecord def set_locality if account.domain.nil? && !attribute_changed?(:local_only) - self.local_only = marked_local_only? + self.local_only = true if marked_local_only? end + self.local_only = true if thread&.local_only? && self.local_only.nil? self.local_only = reblog.local_only if reblog? end -- cgit