Set replies to local-only toots as local-only unless explicitly specified otherwise

This commit is contained in:
Thibaut Girka 2019-08-26 19:33:00 +02:00
parent e9a8bb3d30
commit 0898ff9c14

View file

@ -492,8 +492,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