Fix limited visibility

This commit is contained in:
KMY 2023-08-04 16:58:28 +09:00
parent 176124954e
commit bd060f824b

View file

@ -66,7 +66,11 @@ class REST::StatusSerializer < ActiveModel::Serializer
end
def visibility_ex
object.visibility
if object.limited_visibility?
'private'
else
object.visibility
end
end
def searchability