mirror of
https://github.com/iv-org/invidious.git
synced 2025-11-24 08:33:08 -05:00
parent
0c0d5a0970
commit
aa0179a109
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ module Invidious::Routes::Search
|
||||||
|
|
||||||
# An URL was copy/pasted in the search box.
|
# An URL was copy/pasted in the search box.
|
||||||
# Redirect the user to the appropriate page.
|
# Redirect the user to the appropriate page.
|
||||||
if query.is_url?
|
if query.url?
|
||||||
return env.redirect UrlSanitizer.process(query.text).to_s
|
return env.redirect UrlSanitizer.process(query.text).to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -149,7 +149,7 @@ module Invidious::Search
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks if the query is a standalone URL
|
# Checks if the query is a standalone URL
|
||||||
def is_url? : Bool
|
def url? : Bool
|
||||||
# If the smart features have been inhibited, don't go further.
|
# If the smart features have been inhibited, don't go further.
|
||||||
return false if @inhibit_ssf
|
return false if @inhibit_ssf
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue