This commit is contained in:
r888888888
2015-05-21 13:09:50 -07:00
parent 555f960067
commit b458e8cabc

View File

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