mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 21:52:28 +05:30
Disable unimplemented route
This commit is contained in:
parent
b77c73df0d
commit
aaf8bdb28c
@ -1630,19 +1630,19 @@ get "/feed/subscriptions" do |env|
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
get "/feed/history" do |env|
|
# get "/feed/history" do |env|
|
||||||
user = env.get? "user"
|
# user = env.get? "user"
|
||||||
referer = get_referer(env)
|
# referer = get_referer(env)
|
||||||
|
|
||||||
if user
|
# if user
|
||||||
user = user.as(User)
|
# user = user.as(User)
|
||||||
watched = user.watched.reverse
|
# watched = user.watched.reverse
|
||||||
|
|
||||||
templated "history"
|
# templated "history"
|
||||||
else
|
# else
|
||||||
env.redirect referer
|
# env.redirect referer
|
||||||
end
|
# end
|
||||||
end
|
# end
|
||||||
|
|
||||||
get "/feed/channel/:ucid" do |env|
|
get "/feed/channel/:ucid" do |env|
|
||||||
env.response.content_type = "text/xml"
|
env.response.content_type = "text/xml"
|
||||||
|
Loading…
Reference in New Issue
Block a user