iqdb: allow searching images by iqdb hash.
Example:
https://danbooru.donmai.us/iqdb_queries?search[hash]=iqdb_3fe4c0bd5a88fab53fbe5104efdc43ba3fa094416e6e039cf880f9f1fafafafffc80fd7bfd7dfd80fe72fe79fe80fefafefdfeffff75ff79ff7aff7dfff1fffb000100020003000400080082008a00940184018802000287028c028f030004000600078308001080ef80f800f8fdf900fafdfc00fc7dfcfafe00fe72fefdff7effdffff0fff8fffcfffd0007000f001f003e0080008f0106018d02800282038003810403040806800683070b078007870d800d830f801f00f800f96cfa76fb00fb7efbf4fc00fcfdfd00fd74fdfbfe78fe7efef5fef9fefbfefeff6cff76ff7efffcfffe00070080008300860087008b01030106018002820283028503800402040a0502058b0d80
The hash may be obtained from a regular IQDB search, or by calculating
it yourself (an exercise for the reader).
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
<%= 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 :hash, input_html: { value: params[:search][:hash] } %>
|
||||
<%= f.input :file, as: :file %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user