mod actions: add options to filter /mod_actions by subject.

This commit is contained in:
evazion
2022-09-25 22:48:23 -05:00
parent 3dc765ca9d
commit 17c6a2d77b
8 changed files with 61 additions and 12 deletions

View File

@@ -67,12 +67,10 @@ class ModAction < ApplicationRecord
ip_ban_delete: 162,
ip_ban_undelete: 163,
mass_update: 1000, # XXX unused
bulk_revert: 1001, # XXX unused
other: 2000,
}
def self.model_types
%w[Artist Comment CommentVote ForumPost ForumTopic IpBan ModerationReport Pool Post PostVote Tag TagAlias TagImplication User UserFeedback]
%w[Artist Comment CommentVote ForumPost ForumTopic IpBan ModerationReport Pool Post PostVote Tag TagAlias TagImplication User]
end
def self.visible(user)