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:
parent
04ad5e67d0
commit
4d6c2ab94a
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue