enable iqdb previews in upload page
This commit is contained in:
@@ -17,7 +17,7 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
protected
|
protected
|
||||||
def api_check
|
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)
|
if ApiLimiter.throttled?(request.remote_ip)
|
||||||
render :text => "421 User Throttled\n", :layout => false, :status => 421
|
render :text => "421 User Throttled\n", :layout => false, :status => 421
|
||||||
return false
|
return false
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<%= f.text_field :parent_id %>
|
<%= f.text_field :parent_id %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% if false && Danbooru.config.iqdb_hostname_and_port && params[:url] %>
|
<% if Danbooru.config.iqdb_hostname_and_port && params[:url] %>
|
||||||
<div class="input" id="iqdb-similar">
|
<div class="input" id="iqdb-similar">
|
||||||
<p><em>Loading similar...</em></p>
|
<p><em>Loading similar...</em></p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user