fixes #2371
This commit is contained in:
@@ -1497,7 +1497,13 @@ class Post < ActiveRecord::Base
|
||||
def update_iqdb_async
|
||||
if Danbooru.config.iqdb_hostname_and_port && File.exists?(preview_file_path)
|
||||
Danbooru.config.all_server_hosts.each do |host|
|
||||
delay(:queue => host).update_iqdb
|
||||
if has_tag?("ugoira")
|
||||
run_at = 10.seconds.from_now
|
||||
else
|
||||
run_at = Time.from_now
|
||||
end
|
||||
|
||||
delay(:queue => host, :run_at => run_at).update_iqdb
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user