nodeinfo: add pollLimits to metadata
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Jun 2019 06:19:44 +0000 (06:19 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Jun 2019 06:19:44 +0000 (06:19 +0000)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 59f3d4e11613b47d33c95d17689ee1b5ec94edd9..57f5b61bb3706b480c2a7d22084daaa2228e601e 100644 (file)
@@ -97,6 +97,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         "pleroma_api",
         "mastodon_api",
         "mastodon_api_streaming",
+        "polls",
         if Config.get([:media_proxy, :enabled]) do
           "media_proxy"
         end,
@@ -149,6 +150,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
         },
         staffAccounts: staff_accounts,
         federation: federation_response,
+        pollLimits: Config.get([:instance, :poll_limits]),
         postFormats: Config.get([:instance, :allowed_post_formats]),
         uploadLimits: %{
           general: Config.get([:instance, :upload_limit]),