Previously the search form on the /iqdb_queries page submitted directly to the iqdb service (karasuma.donmai.us), which redirected back to Danbooru with the search results. This was different than API requests, which submitted to /iqdb_queries.json which proxied the call to iqdb through Danbooru. Because of this, searches on the /iqdb_queries page had different behavior than API requests. Things like filesize limits and referrer spoofing were handled differently. Now searches on the /iqdb_queries page submit directly to Danbooru. This is simpler and it means that API requests and HTML requests have the same behavior.
23 lines
719 B
Plaintext
23 lines
719 B
Plaintext
<div id="c-iqdb-queries">
|
|
<div id="a-check">
|
|
<h1>Similar Images Search</h1>
|
|
<section>
|
|
<p>Paste a URL or upload a file to perform a reverse image search on <%= Danbooru.config.app_name %>.</p>
|
|
|
|
<%= search_form_for(iqdb_queries_path, method: :post) do |f| %>
|
|
<%= f.input :post_id, label: "Post ID", input_html: { value: params[:search][:post_id] } %>
|
|
<%= f.input :url, input_html: { value: params[:search][:url] } %>
|
|
<%= f.input :file, as: :file %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
</section>
|
|
|
|
<%= render "iqdb_queries/matches" %>
|
|
</div>
|
|
</div>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Similar Images Search - <%= Danbooru.config.app_name %>
|
|
<% end %>
|
|
|