NodeInfo: Fix federating status not being reported when MRF
authorrinpatch <rinpatch@sdf.org>
Thu, 13 Feb 2020 16:53:39 +0000 (19:53 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 13 Feb 2020 16:53:39 +0000 (19:53 +0300)
transparency is disabled

Closes #1568

lib/pleroma/web/nodeinfo/nodeinfo_controller.ex

index 03c35cc2a25fa89a62f7cf74171583940e9c13e2..33301292005ce74b3e9c2b0b30981725d0270ec7 100644 (file)
@@ -46,10 +46,10 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
 
         data
         |> Map.merge(%{quarantined_instances: quarantined})
-        |> Map.put(:enabled, Config.get([:instance, :federating]))
       else
         %{}
       end
+      |> Map.put(:enabled, Config.get([:instance, :federating]))
 
     features =
       [