Add `characterLimit` and `vapidPublicKey` to nodeinfo
authorEgor Kislitsyn <egor@kislitsyn.com>
Thu, 26 Mar 2020 12:20:20 +0000 (16:20 +0400)
committerEgor Kislitsyn <egor@kislitsyn.com>
Thu, 26 Mar 2020 12:20:20 +0000 (16:20 +0400)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 30838b1eb76d467845144f1437c49a42eb38a6ea..6947c82b97cb488669d3cb19a39e8d8b2d4be85b 100644 (file)
@@ -106,6 +106,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         },
         staffAccounts: staff_accounts,
         federation: federation_response,
+        characterLimit: Config.get([:instance, :limit]),
         pollLimits: Config.get([:instance, :poll_limits]),
         postFormats: Config.get([:instance, :allowed_post_formats]),
         uploadLimits: %{
@@ -125,7 +126,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         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)
+        skipThreadContainment: Config.get([:instance, :skip_thread_containment], false),
+        vapidPublicKey: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
       }
     }
   end