Add hide_collections
, discoverable
and indexable
attributes to credentials API (#26998)
This commit is contained in:
parent
61fe25fe74
commit
828eebad48
2 changed files with 67 additions and 0 deletions
|
@ -15,6 +15,9 @@ class REST::CredentialAccountSerializer < REST::AccountSerializer
|
|||
note: object.note,
|
||||
fields: object.fields.map(&:to_h),
|
||||
follow_requests_count: FollowRequest.where(target_account: object).limit(40).count,
|
||||
hide_collections: object.hide_collections,
|
||||
discoverable: object.discoverable,
|
||||
indexable: object.indexable,
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue