forked from e621ng/e621ng
Fix iqdb update/remove jobs
This commit is contained in:
parent
e9f6ec4fd9
commit
684b249709
@ -1785,14 +1785,14 @@ class Post < ApplicationRecord
|
||||
|
||||
def remove_iqdb(post_id)
|
||||
if iqdb_enabled?
|
||||
IQDBRemoveJob.perform_async(post_id)
|
||||
IQDBRemoveJob.perform_async(id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def update_iqdb_async
|
||||
if Post.iqdb_enabled? && has_preview?
|
||||
IQDBUpdateJob.perform_async(post_id, preview_file_url)
|
||||
IQDBUpdateJob.perform_async(id, preview_file_url)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user