Fallback on ucid for channel search when author contains hyphen

pull/319/head
Omar Roth 2019-01-25 12:26:16 -06:00
rodzic 06aa1bb90f
commit 898b768b30
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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