Always use ucid for channel search

This commit is contained in:
Omar Roth 2019-04-11 13:52:09 -05:00
parent 4e6a931de3
commit aa8ff7ace3
2 changed files with 3 additions and 7 deletions

View file

@ -2521,11 +2521,7 @@ get "/channel/:ucid" do |env|
end
if !auto_generated
if author.includes?(" ") || author.includes?("-")
env.set "search", "channel:#{ucid} "
else
env.set "search", "channel:#{author.downcase} "
end
env.set "search", "channel:#{ucid} "
end
if auto_generated