diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-10 23:25:04 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-10 23:25:04 -0600 |
commit | d9a9a18afae94ec0a2160e746265e47d7b639eaf (patch) | |
tree | c78a09372bac84ecd0126cd783d74cee522d43c7 /app | |
parent | 0f1532aee098049b17ad6b7ecb1d083c856f1d64 (diff) |
make sure it is actually a local user before checking `monsterfork_api` prop
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 2 |
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 |