IQDB direct url lookup: send the thumbnail instead of the full size

This commit is contained in:
nonamethanks
2021-08-14 11:30:27 +02:00
committed by evazion
parent d469b87ae2
commit 539af4421d

View File

@@ -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