From 6ecc7e5ffb0ce33ee57e0590e44d0a7b21487cf0 Mon Sep 17 00:00:00 2001 From: Ember Date: Sat, 29 Jun 2024 18:48:48 +1000 Subject: [PATCH] hm --- app/controllers/api/v1/timelines/public_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/timelines/public_controller.rb b/app/controllers/api/v1/timelines/public_controller.rb index 8703725dcd8d1c..e3bbd3b2991df9 100644 --- a/app/controllers/api/v1/timelines/public_controller.rb +++ b/app/controllers/api/v1/timelines/public_controller.rb @@ -16,7 +16,7 @@ def show def require_auth? if truthy_param?(:local) and !truthy_param?(:remote) !Setting.timeline_preview_local - elsif truthy_param?(:remote) and !truthy_param?(:allow_local_only) + elsif truthy_param?(:remote) and !truthy_param?(:allow_local_only) and !truthy_param?(:local) !Setting.timeline_preview_remote elsif (!truthy_param?(:remote) and truthy_param?(:allow_local_only)) or (truthy_param?(:remote) and truthy_param?(:local)) !Setting.timeline_preview