diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:54:32 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-11 02:55:01 -0600 |
commit | 51443a2ccb89df35b94109627efc01b8c63ceb2e (patch) | |
tree | 00530bbea1c18af0a95b623fc323e108326d9620 | |
parent | d32f0c7bcfc3b14cde451dd11b522698550df327 (diff) |
expose `local` visibility flag only when monsterfork api exposure is set to `full`
-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 8e322b5ec..32f75caa3 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 monsterfork_api == :full && object.local_visibility? + elsif monsterfork_api != :full && object.local_visibility? 'unlisted' else object.visibility |