IQDB direct url lookup: send the thumbnail instead of the full size
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user