Add `account_activation_required` to /api/v1/instance
authorAlex Gleason <alex@alexgleason.me>
Fri, 29 May 2020 20:16:44 +0000 (15:16 -0500)
committerAlex Gleason <alex@alexgleason.me>
Sun, 31 May 2020 16:36:49 +0000 (11:36 -0500)
lib/pleroma/web/mastodon_api/views/instance_view.ex

index 6a630eafac491d87a524e39090a98be294ccd25d..bb7bd2a9fa459bf108128966cae8eaf6bb5e7162 100644 (file)
@@ -36,6 +36,7 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
       background_image: Keyword.get(instance, :background_image),
       pleroma: %{
         metadata: %{
+          account_activation_required: Keyword.get(instance, :account_activation_required),
           features: features(),
           federation: federation()
         },