Remote Timeline: add Streaming support
[akkoma] / lib / pleroma / web / preload / timelines.ex
index 57de0405104bcf7599260e9278b44aff7e36abff..b279a865db3f5097afa44dc8abe3cd4ea77425bf 100644 (file)
@@ -16,7 +16,7 @@ defmodule Pleroma.Web.Preload.Providers.Timelines do
   end
 
   def build_public_tag(acc, params) do
-    if Pleroma.Config.get([:restrict_unauthenticated, :timelines, :federated], true) do
+    if Pleroma.Config.restrict_unauthenticated_access?(:timelines, :federated) do
       acc
     else
       Map.put(acc, @public_url, public_timeline(params))