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:
Vinoth Kannan
2018-10-11 17:13:26 +05:30
committed by GitHub
4 changed files with 45 additions and 7 deletions

View File

@ -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)