fix: pass user to query.process if present (#5277)

pull/5314/head
syeopite 2025-05-17 16:18:37 -07:00
commit ef07c542dc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: A73C186DA3955A1A
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,11 @@ module Invidious::Routes::Search
end
begin
items = query.process
if user
items = query.process(user.as(User))
else
items = query.process
end
rescue ex : ChannelSearchException
return 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