enable iqdb previews in upload page
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<%= f.text_field :parent_id %>
|
||||
</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">
|
||||
<p><em>Loading similar...</em></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user