diff --git a/app/controllers/api/v1/timelines/public_controller.rb b/app/controllers/api/v1/timelines/public_controller.rb index 18c135e1e68815..31250942540666 100644 --- a/app/controllers/api/v1/timelines/public_controller.rb +++ b/app/controllers/api/v1/timelines/public_controller.rb @@ -14,7 +14,9 @@ def show private def require_auth? - !Setting.timeline_preview || !Setting.timeline_preview_local && truthy_param?(:local) || !Setting.timeline_preview_remote && truthy_param?(:remote) + !Setting.timeline_preview + !Setting.timeline_preview_local && truthy_param?(:local) + !Setting.timeline_preview_remote && truthy_param?(:remote) end def require_auth_local?