mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
DEV: move post flags into database (#27125)
This is preparation for a feature that will allow admins to define their custom flags. Current behaviour should stay untouched.
This commit is contained in:

committed by
GitHub

parent
312a930ac8
commit
cfbbfd177c
@ -1,7 +1,3 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:flag, from: :post_action) do
|
||||
user
|
||||
post
|
||||
post_action_type_id PostActionType.types[:spam]
|
||||
end
|
||||
Fabricator(:flag) { name "offtopic", applies_to { %w[Post Chat::Message] } }
|
||||
|
Reference in New Issue
Block a user