expunge: decrement upload and note/post update counts (fix #2062).
This commit is contained in:
@@ -2,7 +2,7 @@ class PostArchive < ApplicationRecord
|
||||
extend Memoist
|
||||
|
||||
belongs_to :post
|
||||
belongs_to :updater, class_name: "User"
|
||||
belongs_to :updater, class_name: "User", counter_cache: "post_update_count"
|
||||
|
||||
def self.enabled?
|
||||
Danbooru.config.aws_sqs_archives_url.present?
|
||||
|
||||
Reference in New Issue
Block a user