Remove setting of sensitive value (default false, not null) in Status model (#29589)

This commit is contained in:
Matt Jankowski 2024-03-14 09:56:59 -04:00 committed by GitHub
parent 974c7672e5
commit 6c3e718b86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -442,7 +442,6 @@ class Status < ApplicationRecord
def set_visibility def set_visibility
self.visibility = reblog.visibility if reblog? && visibility.nil? self.visibility = reblog.visibility if reblog? && visibility.nil?
self.visibility = (account.locked? ? :private : :public) if visibility.nil? self.visibility = (account.locked? ? :private : :public) if visibility.nil?
self.sensitive = false if sensitive.nil?
end end
def set_conversation def set_conversation