2
0

Add hide_collections, discoverable and indexable attributes to credentials API (#26998)

This commit is contained in:
Claire
2023-09-20 18:25:16 +02:00
committed by GitHub
parent 61fe25fe74
commit 828eebad48
2 changed files with 67 additions and 0 deletions

View File

@@ -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