Mastodon 2.7.2 instance attributes (registrations, languages).

This commit is contained in:
Ivan Tashkinov 2019-03-26 16:27:17 +03:00
parent 15aa94f40f
commit eef1042b16

View file

@ -161,6 +161,9 @@ def masto_instance(conn, _params) do
},
stats: Stats.get_stats(),
thumbnail: Web.base_url() <> "/instance/thumbnail.jpeg",
languages: ["en"],
registrations: Pleroma.Config.get([:instance, :registrations_open]),
# Extra (not present in Mastodon):
max_toot_chars: Keyword.get(instance, :limit)
}