[#114] Added `invitesEnabled` to `metadata` of nodeinfo.
authorIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 14 Dec 2018 11:13:13 +0000 (14:13 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Fri, 14 Dec 2018 11:13:13 +0000 (14:13 +0300)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 277dc6ba1bc6fed75af858f88c0d302e88fc0a79..44c11f40a35efaec656778044a7b70c5762e1737 100644 (file)
@@ -132,6 +132,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
           banner: Keyword.get(instance, :banner_upload_limit),
           background: Keyword.get(instance, :background_upload_limit)
         },
+        invitesEnabled: Keyword.get(instance, :invites_enabled, false),
         features: features
       }
     }