Add `mailerEnabled` to the NodeInfo metadata
authorEugenij <eugenijm@protonmail.com>
Mon, 29 Jul 2019 16:17:40 +0000 (16:17 +0000)
committerkaniini <ariadne@dereferenced.org>
Mon, 29 Jul 2019 16:17:40 +0000 (16:17 +0000)
CHANGELOG.md
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 5416d452eee168b7c07bb4f1cd410b36c444dc1b..e77fe4f3d0ae555980d72e8a13ce6d2fc9f61dcd 100644 (file)
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 - Configuration: Filter.AnonymizeFilename added ability to retain file extension with custom text
 - Federation: Return 403 errors when trying to request pages from a user's follower/following collections if they have `hide_followers`/`hide_follows` set
 - NodeInfo: Return `skipThreadContainment` in `metadata` for the `skip_thread_containment` option
+- NodeInfo: Return `mailerEnabled` in `metadata`
 - Mastodon API: Unsubscribe followers when they unfollow a user
 - AdminAPI: Add "godmode" while fetching user statuses (i.e. admin can see private statuses)
 
index a1d7fcc7dae34a046acebca76db2a72cc29ba7e1..54f89e65cded917bc7e364ecc66c648364891de6 100644 (file)
@@ -165,6 +165,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         },
         accountActivationRequired: Config.get([:instance, :account_activation_required], false),
         invitesEnabled: Config.get([:instance, :invites_enabled], false),
+        mailerEnabled: Config.get([Pleroma.Emails.Mailer, :enabled], false),
         features: features,
         restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames]),
         skipThreadContainment: Config.get([:instance, :skip_thread_containment], false)