Fix #3614: IQDB: don't index placeholder thumbnails.
This commit is contained in:
@@ -1648,7 +1648,7 @@ class Post < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def update_iqdb_async
|
def update_iqdb_async
|
||||||
if Post.iqdb_enabled?
|
if Post.iqdb_enabled? && has_preview?
|
||||||
Post.iqdb_sqs_service.send_message("update\n#{id}\n#{preview_file_url}")
|
Post.iqdb_sqs_service.send_message("update\n#{id}\n#{preview_file_url}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user