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

main
Thibaut Girka 5 years ago
parent e9a8bb3d30
commit 0898ff9c14

@ -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

Loading…
Cancel
Save