mirror of
https://github.com/iv-org/invidious.git
synced 2025-09-20 17:26:29 -05:00
small formatting
This commit is contained in:
parent
b91fd7a491
commit
41af9318f3
@ -4,7 +4,7 @@ module Invidious::Routes::ErrorRoutes
|
|||||||
if HOST_URL.empty? && env.request.path.starts_with?("/v1/storyboards/sb")
|
if HOST_URL.empty? && env.request.path.starts_with?("/v1/storyboards/sb")
|
||||||
return env.redirect "#{env.request.path[15..]}?#{env.params.query}"
|
return env.redirect "#{env.request.path[15..]}?#{env.params.query}"
|
||||||
end
|
end
|
||||||
|
|
||||||
if md = env.request.path.match(/^\/(?<id>([a-zA-Z0-9_-]{11})|(\w+))$/)
|
if md = env.request.path.match(/^\/(?<id>([a-zA-Z0-9_-]{11})|(\w+))$/)
|
||||||
item = md["id"]
|
item = md["id"]
|
||||||
|
|
||||||
@ -52,4 +52,4 @@ module Invidious::Routes::ErrorRoutes
|
|||||||
env.response.headers["Location"] = "/"
|
env.response.headers["Location"] = "/"
|
||||||
haltf env, status_code: 302
|
haltf env, status_code: 302
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user