mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Disable unimplemented route
This commit is contained in:
parent
b77c73df0d
commit
aaf8bdb28c
1 changed files with 11 additions and 11 deletions
|
@ -1630,19 +1630,19 @@ get "/feed/subscriptions" do |env|
|
|||
end
|
||||
end
|
||||
|
||||
get "/feed/history" do |env|
|
||||
user = env.get? "user"
|
||||
referer = get_referer(env)
|
||||
# get "/feed/history" do |env|
|
||||
# user = env.get? "user"
|
||||
# referer = get_referer(env)
|
||||
|
||||
if user
|
||||
user = user.as(User)
|
||||
watched = user.watched.reverse
|
||||
# if user
|
||||
# user = user.as(User)
|
||||
# watched = user.watched.reverse
|
||||
|
||||
templated "history"
|
||||
else
|
||||
env.redirect referer
|
||||
end
|
||||
end
|
||||
# templated "history"
|
||||
# else
|
||||
# env.redirect referer
|
||||
# end
|
||||
# end
|
||||
|
||||
get "/feed/channel/:ucid" do |env|
|
||||
env.response.content_type = "text/xml"
|
||||
|
|
Loading…
Reference in a new issue