nodeinfo: add accepted post formats to metadata
authorWilliam Pitcock <nenolod@dereferenced.org>
Fri, 5 Oct 2018 21:05:37 +0000 (21:05 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Fri, 5 Oct 2018 21:05:37 +0000 (21:05 +0000)
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 860468506fc7ea101f75c358083c0ba3eae3da66..a14000c61a722c2f61ab2b5bbd2bbd9958602440 100644 (file)
@@ -92,7 +92,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
           mrf_policies: mrf_policies,
           mrf_simple: mrf_simple,
           quarantined_instances: quarantined
-        }
+        },
+        postFormats: Keyword.get(instance, :allowed_post_formats)
       }
     }