about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-11-24 12:33:24 -0600
committerFire Demon <firedemon@creature.cafe>2020-11-24 12:33:24 -0600
commit74bb8ffdfd368e518ef18dcb1bdb56121c0d4cc4 (patch)
tree95824f5dae3fac81516586cb1d6d0d782274fd74 /app/models
parent69fa4f7d4f3c435018c1e7cb9e6a0fcb5b233695 (diff)
Add missing sensitization checks
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index f20e7710d..67b975813 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -655,7 +655,7 @@ class Status < ApplicationRecord
     self.visibility = reblog.visibility if reblog? && visibility.nil?
     self.visibility = (account.locked? ? :private : :public) if visibility.nil?
     self.visibility = thread.visibility if should_limit_visibility?
-    self.sensitive  = false if sensitive.nil?
+    self.sensitive  = account.sensitized? if sensitive.nil?
 
     if reply? && !thread.nil?
       self.in_reply_to_account_id = carried_over_reply_to_account_id