From 7f85dd27f9eb9ff830f63e4b80f7e3c3f7f400f6 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Wed, 29 Aug 2018 20:56:24 -0700 Subject: [PATCH] use image url for iqdb proxy --- app/controllers/iqdb_queries_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/iqdb_queries_controller.rb b/app/controllers/iqdb_queries_controller.rb index fe2b24b10..325760b3a 100644 --- a/app/controllers/iqdb_queries_controller.rb +++ b/app/controllers/iqdb_queries_controller.rb @@ -4,7 +4,8 @@ class IqdbQueriesController < ApplicationController def show if params[:url] - @matches = IqdbProxy.query(params[:url]) + strategy = Sources::Strategies.find(params[:url]) + @matches = IqdbProxy.query(strategy.image_url) end if params[:post_id]