diff --git a/src/invidious.cr b/src/invidious.cr index c9486e63..8d3d1894 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -164,7 +164,7 @@ spawn do end end -before_all do |env| +before_get do |env| if env.request.cookies["SID"]? env.set "authorized", true else diff --git a/src/views/search.ecr b/src/views/search.ecr index 462abed4..9f96dd3f 100644 --- a/src/views/search.ecr +++ b/src/views/search.ecr @@ -9,7 +9,7 @@