about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-13 16:11:21 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-13 16:11:21 -0600
commite507cdc63e7606daed3ceff4b1f011cb9a37a370 (patch)
tree48f78e57b95c4bd2ba9113d79869859c1d8e134f /app
parentaab978cca1aed46c8430b4b906a667010e74935e (diff)
fix `card_not_filtered?` logic
Diffstat (limited to 'app')
-rw-r--r--app/serializers/rest/status_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index 931904636..11a50c47b 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -153,7 +153,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
   end
 
   def card_not_filtered?
-    !(current_user? && current_user.hides_sensitive_cards? && object.sensitive?)
+    current_user.nil? || !(current_user.hides_sensitive_cards? && object.sensitive?)
   end
 
   def ordered_mentions