expire favorite/list_users.json
This commit is contained in:
@@ -20,6 +20,10 @@ class LegacyController < ApplicationController
|
|||||||
@tags = Tag.search(params).limit(100)
|
@tags = Tag.search(params).limit(100)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def unavailable
|
||||||
|
render :text => "this resource is no longer available", :status => 410
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def tag_query
|
def tag_query
|
||||||
params[:tags] || (params[:post] && params[:post][:tags])
|
params[:tags] || (params[:post] && params[:post][:tags])
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ Danbooru::Application.routes.draw do
|
|||||||
|
|
||||||
match "/favorite" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
match "/favorite" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
||||||
match "/favorite/index" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
match "/favorite/index" => redirect {|params, req| "/favorites?page=#{req.params[:page]}"}
|
||||||
|
match "/favorite/list_users.json", :controller => "legacy", :action => "unavailable"
|
||||||
|
|
||||||
match "/forum" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
match "/forum" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||||
match "/forum/index" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
match "/forum/index" => redirect {|params, req| "/forum_topics?page=#{req.params[:page]}"}
|
||||||
|
|||||||
Reference in New Issue
Block a user