summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2023-02-09 19:23:29 +0000
committerlain <lain@soykaf.club>2023-02-09 19:23:29 +0000
commit724bf7c6474d4ec37c8713d9eec634dec62e8614 (patch)
tree91c8d57f8547caac382e761b722e05b0edcd5fe0 /lib
parent50abb54d15bb52c510ccacadc6a76c38455cc39c (diff)
parentbc7ec431795ffb096648902fdd30047cfdb64b4f (diff)
downloadpleroma-724bf7c6474d4ec37c8713d9eec634dec62e8614.tar.gz
pleroma-724bf7c6474d4ec37c8713d9eec634dec62e8614.zip
Merge branch 'tusooa/3055-instance-languages' into 'develop'
Allow customizing instance languages Closes #3055 See merge request pleroma/pleroma!3835
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/instance_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex
index 917725839..abf7f29ab 100644
--- a/lib/pleroma/web/mastodon_api/views/instance_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex
@@ -27,7 +27,7 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
thumbnail:
URI.merge(Pleroma.Web.Endpoint.url(), Keyword.get(instance, :instance_thumbnail))
|> to_string,
- languages: ["en"],
+ languages: Keyword.get(instance, :languages, ["en"]),
registrations: Keyword.get(instance, :registrations_open),
approval_required: Keyword.get(instance, :account_approval_required),
# Extra (not present in Mastodon):