mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Use string interpolation instead of concatenation
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
12b4dd9191
commit
8bd2e60abc
2 changed files with 2 additions and 2 deletions
|
@ -278,7 +278,7 @@ module Invidious::Routes::Channels
|
||||||
return error_template(500, ex)
|
return error_template(500, ex)
|
||||||
end
|
end
|
||||||
|
|
||||||
env.set "search", "channel:" + ucid + " "
|
env.set "search", "channel:#{ucid} "
|
||||||
return {locale, user, subscriptions, continuation, ucid, channel}
|
return {locale, user, subscriptions, continuation, ucid, channel}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -66,7 +66,7 @@ module Invidious::Routes::Search
|
||||||
redirect_url = Invidious::Frontend::Misc.redirect_url(env)
|
redirect_url = Invidious::Frontend::Misc.redirect_url(env)
|
||||||
|
|
||||||
if query.type == Invidious::Search::Query::Type::Channel
|
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
|
else
|
||||||
env.set "search", query.text
|
env.set "search", query.text
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue