Invidious is an alternative front-end to YouTube
fix: pass user to `query.process` if present.
Fijxu25eade589f28
diff --git a/src/invidious/routes/search.cr b/src/invidious/routes/search.crindex 44970922..b195c7b3 100644--- a/src/invidious/routes/search.cr+++ b/src/invidious/routes/search.cr@@ -58,7 +58,11 @@ module Invidious::Routes::Searchendbegin- items = query.process+ if user+ items = query.process(user.as(User))+ else+ items = query.process+ endrescue ex : ChannelSearchExceptionreturn error_template(404, "Unable to find channel with id of '#{HTML.escape(ex.channel)}'. Are you sure that's an actual channel id? It should look like 'UC4QobU6STFB0P71PMvOGN5A'.")rescue ex