aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-03-26 16:27:17 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-03-26 16:27:17 +0300
commiteef1042b167e657a80f831b6c3037cc4924d8147 (patch)
treec253796bc9731276ad8cbc555f2bc98bbef6e760
parent15aa94f40f73444d67da7cb71ec219b97ec5142e (diff)
downloadpleroma-eef1042b167e657a80f831b6c3037cc4924d8147.tar.gz
Mastodon 2.7.2 instance attributes (registrations, languages).
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 6be0f2baf..6b7c67012 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -161,6 +161,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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)
}