Mastodon 2.7.2 instance attributes (registrations, languages).
authorIvan Tashkinov <ivant.business@gmail.com>
Tue, 26 Mar 2019 13:27:17 +0000 (16:27 +0300)
committerIvan Tashkinov <ivant.business@gmail.com>
Tue, 26 Mar 2019 13:27:17 +0000 (16:27 +0300)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index 6be0f2bafdcd6b3d563a05e4effa48f6e17bc2b3..6b7c67012cf72963720298b44484c592f4f4c520 100644 (file)
@@ -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)
     }