From 539af4421d6159b559f5da44f2a62e6bbfa9e1f0 Mon Sep 17 00:00:00 2001 From: nonamethanks Date: Sat, 14 Aug 2021 11:30:27 +0200 Subject: [PATCH] IQDB direct url lookup: send the thumbnail instead of the full size --- app/logical/iqdb_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/iqdb_client.rb b/app/logical/iqdb_client.rb index e8adb126b..575c54d55 100644 --- a/app/logical/iqdb_client.rb +++ b/app/logical/iqdb_client.rb @@ -53,7 +53,7 @@ class IqdbClient strategy = Sources::Strategies.find(url) download_url = strategy.send(type) file = strategy.download_file!(download_url) - file + file.preview(Danbooru.config.small_image_width, Danbooru.config.small_image_width) end # Transform the JSON returned by IQDB to add the full post data for each