logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 9d9bc74e9187d423aea6745d6b6f8e1b38bf24a0
parent 799dc1773d2ec270933bc3c084b16a391485fcfe
Author: marcin mikołajczak <git@mkljczk.pl>
Date:   Tue, 27 Aug 2024 23:30:47 +0200

Expose language detection in features

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>

Diffstat:

Mlib/pleroma/web/mastodon_api/views/instance_view.ex5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex @@ -145,7 +145,10 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do end, "pleroma:get:main/ostatus", "pleroma:group_actors", - "pleroma:bookmark_folders" + "pleroma:bookmark_folders", + if Config.get([Pleroma.Language.LanguageDetector, :provider]) do + "pleroma:language_detection" + end ] |> Enum.filter(& &1) end