1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Add search configuration to instance api

This commit is contained in:
noellabo 2023-09-21 17:55:01 +09:00
parent 04ad5e67d0
commit 4d6c2ab94a

View file

@ -77,6 +77,13 @@ class REST::InstanceSerializer < ActiveModel::Serializer
translation: {
enabled: TranslationService.configured?,
},
search: {
enabled: Chewy.enabled?,
supported_prefix: SearchQueryTransformer::SUPPORTED_PREFIXES,
supported_properties: SearchQueryTransformer::SUPPORTED_PROPERTIES,
supported_operator: SearchQueryTransformer::SUPPORTED_OPERATOR,
},
}
end