about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-10 23:25:04 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-10 23:25:04 -0600
commitd9a9a18afae94ec0a2160e746265e47d7b639eaf (patch)
treec78a09372bac84ecd0126cd783d74cee522d43c7
parent0f1532aee098049b17ad6b7ecb1d083c856f1d64 (diff)
make sure it is actually a local user before checking `monsterfork_api` prop
-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 bec2a836b..88581471b 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -72,7 +72,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
   def visibility
     if object.limited_visibility?
       'private'
-    elsif current_user.monsterfork_api != 'full' && object.local_visibility?
+    elsif current_user? && current_user.monsterfork_api != 'full' && object.local_visibility?
       'unlisted'
     else
       object.visibility