Fix limited visibility
This commit is contained in:
parent
176124954e
commit
bd060f824b
1 changed files with 5 additions and 1 deletions
|
@ -66,7 +66,11 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def visibility_ex
|
def visibility_ex
|
||||||
object.visibility
|
if object.limited_visibility?
|
||||||
|
'private'
|
||||||
|
else
|
||||||
|
object.visibility
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def searchability
|
def searchability
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue