mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
Fallback on ucid for channel search when author contains hyphen
This commit is contained in:
parent
06aa1bb90f
commit
898b768b30
@ -2192,7 +2192,7 @@ get "/channel/:ucid" do |env|
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !auto_generated
|
if !auto_generated
|
||||||
if author.includes? " "
|
if author.includes?(" ") || author.includes?("-")
|
||||||
env.set "search", "channel:#{ucid} "
|
env.set "search", "channel:#{ucid} "
|
||||||
else
|
else
|
||||||
env.set "search", "channel:#{author.downcase} "
|
env.set "search", "channel:#{author.downcase} "
|
||||||
|
Loading…
Reference in New Issue
Block a user