diff options
author | tusooa <tusooa@kazv.moe> | 2023-01-26 20:17:13 -0500 |
---|---|---|
committer | tusooa <tusooa@kazv.moe> | 2023-02-20 12:25:00 -0500 |
commit | 1c225bfd6e86b58d2a70eb74d3774a438dc7796b (patch) | |
tree | 5762b0dc52aeefa3791683b523ac6fee90c04043 /lib | |
parent | 1b82fd95d414a411f4aaae125c66c8df53f84f21 (diff) | |
download | pleroma-1c225bfd6e86b58d2a70eb74d3774a438dc7796b.tar.gz pleroma-1c225bfd6e86b58d2a70eb74d3774a438dc7796b.zip |
Allow customizing instance languages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/instance_view.ex | 2 |
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): |