mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 12:54:32 +08:00
Merge pull request #6476 from vinothkannans/tl4-flag
FEATURE: automatically hide non-TL4 posts when flagged by a TL4 user
This commit is contained in:
@ -153,7 +153,7 @@ module DiscourseNarrativeBot
|
||||
flag = PostAction.create!(
|
||||
user: self.discobot_user,
|
||||
post: post, post_action_type_id:
|
||||
PostActionType.types[:off_topic]
|
||||
PostActionType.types[:notify_moderators]
|
||||
)
|
||||
|
||||
PostAction.defer_flags!(post, self.discobot_user)
|
||||
|
Reference in New Issue
Block a user