about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-11 02:54:32 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-11 02:55:01 -0600
commit51443a2ccb89df35b94109627efc01b8c63ceb2e (patch)
tree00530bbea1c18af0a95b623fc323e108326d9620 /app
parentd32f0c7bcfc3b14cde451dd11b522698550df327 (diff)
expose `local` visibility flag only when monsterfork api exposure is set to `full`
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 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