enable iqdb previews in upload page

This commit is contained in:
r888888888
2014-03-27 15:34:05 -07:00
parent 48ae3bcefd
commit 3e5dd6ca20
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ class ApplicationController < ActionController::Base
protected
def api_check
if request.format.to_s =~ /\/json|\/xml/
if request.format.to_s =~ /\/json|\/xml/ || params[:controller] == "iqdb"
if ApiLimiter.throttled?(request.remote_ip)
render :text => "421 User Throttled\n", :layout => false, :status => 421
return false