Merge search behaviour change, and refactor elasticsearch #28

Merged
floatingghost merged 91 commits from elasticsearch-refactor into develop 2022-06-30 16:55:31 +00:00
Showing only changes of commit 845e5769ce - Show all commits

View file

@ -55,8 +55,10 @@ def supported_variants_of_locale(locale) do
cond do cond do
variant?(locale) -> variant?(locale) ->
[locale] [locale]
supports_locale?(locale) -> supports_locale?(locale) ->
[locale] [locale]
true -> true ->
Gettext.known_locales(Pleroma.Web.Gettext) Gettext.known_locales(Pleroma.Web.Gettext)
|> Enum.filter(fn l -> String.starts_with?(l, locale <> "_") end) |> Enum.filter(fn l -> String.starts_with?(l, locale <> "_") end)