also put publicVisibility in preloaded nodeinfo
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 15 Mar 2023 22:59:58 +0000 (22:59 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Wed, 15 Mar 2023 22:59:58 +0000 (22:59 +0000)
lib/pleroma/web/nodeinfo/nodeinfo.ex

index bf0d65f4522ae1b72aa6267b47263d2e15b08a6a..14e39e6b3e583df8ae12f0824cfa77537fb0f858 100644 (file)
@@ -71,7 +71,11 @@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo do
         restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames]),
         skipThreadContainment: Config.get([:instance, :skip_thread_containment], false),
         privilegedStaff: Config.get([:instance, :privileged_staff]),
-        localBubbleInstances: Config.get([:instance, :local_bubble], [])
+        localBubbleInstances: Config.get([:instance, :local_bubble], []),
+        publicTimelineVisibility: %{
+          federated: !Config.restrict_unauthenticated_access?(:timelines, :federated),
+          local: !Config.restrict_unauthenticated_access?(:timelines, :local)
+        }
       }
     }
   end