Merge pull request #4481 from BrokenEagle/fix-iqdb-image-url

Adds suport for using the image_url parameter with IQDB
This commit is contained in:
evazion
2020-05-25 02:20:55 -05:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ class IqdbQueriesController < ApplicationController
def show
# XXX allow bare search params for backwards compatibility.
search_params.merge!(params.slice(:url, :image_url, :post_id, :limit, :similarity, :high_similarity).permit!)
search_params.merge!(params.slice(:url, :image_url, :file_url, :post_id, :limit, :similarity, :high_similarity).permit!)
@high_similarity_matches, @low_similarity_matches, @matches = IqdbProxy.search(search_params)
respond_with(@matches, template: "iqdb_queries/show")