Merge branch 'instance-v2' into 'develop'

Show instance language in /api/v2/instance

See merge request soapbox-pub/rebased!260
This commit is contained in:
marcin mikołajczak 2023-07-24 09:25:52 +00:00
commit c54e542f83

View file

@ -72,7 +72,7 @@ def render("show2.json", _) do
URI.merge(Pleroma.Web.Endpoint.url(), Keyword.get(instance, :instance_thumbnail))
|> to_string
},
languages: ["en"],
languages: Keyword.get(instance, :languages, ["en"]),
configuration: configuration2(),
registrations: %{
enabled: Keyword.get(instance, :registrations_open),