Ameba: Fix Naming/PredicateName

Introduced in #4146
This commit is contained in:
syeopite 2024-08-24 10:59:23 -07:00
parent 0c0d5a0970
commit aa0179a109
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ module Invidious::Routes::Search
# An URL was copy/pasted in the search box.
# Redirect the user to the appropriate page.
if query.is_url?
if query.url?
return env.redirect UrlSanitizer.process(query.text).to_s
end

View File

@ -149,7 +149,7 @@ module Invidious::Search
end
# 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.
return false if @inhibit_ssf