mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: custom flag can require additional message (#27706)
Allow admin to create custom flag which requires an additional message. I decided to rename the old `custom_flag` into `require_message` as it is more descriptive.
This commit is contained in:
committed by
GitHub
parent
63ca30ccb4
commit
c0bcd979e3
@@ -542,7 +542,7 @@ class PostRevisor
|
||||
flaggers = []
|
||||
@post
|
||||
.post_actions
|
||||
.where(post_action_type_id: PostActionType.flag_types_without_custom.values)
|
||||
.where(post_action_type_id: PostActionType.flag_types_without_additional_message.values)
|
||||
.each do |action|
|
||||
flaggers << action.user if action.user
|
||||
action.remove_act!(Discourse.system_user)
|
||||
|
||||
Reference in New Issue
Block a user