Add hide_collections, discoverable and indexable attributes to credentials API (#26998)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user