Use string interpolation instead of concatenation

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
このコミットが含まれているのは:
ChunkyProgrammer 2023-05-22 09:19:32 -04:00 committed by GitHub
コミット 8bd2e60abc
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更2行の追加2行の削除

ファイルの表示

@ -278,7 +278,7 @@ module Invidious::Routes::Channels
return error_template(500, ex)
end
env.set "search", "channel:" + ucid + " "
env.set "search", "channel:#{ucid} "
return {locale, user, subscriptions, continuation, ucid, channel}
end
end

ファイルの表示

@ -66,7 +66,7 @@ module Invidious::Routes::Search
redirect_url = Invidious::Frontend::Misc.redirect_url(env)
if query.type == Invidious::Search::Query::Type::Channel
env.set "search", "channel:" + query.channel + " " + query.text
env.set "search", "channel:#{query.channel} #{query.text}"
else
env.set "search", query.text
end