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