FIX: Incorrect API in narrative bot

This commit is contained in:
Robin Ward 2019-03-28 14:29:33 -04:00
parent 36a7bfa2b0
commit fd6513b516
1 changed files with 2 additions and 2 deletions

View File

@ -149,8 +149,8 @@ module DiscourseNarrativeBot
if SiteSetting.delete_removed_posts_after < 1
opts[:delete_removed_posts_after] = 1
flag = PostActionCreator.notify_moderators(self.discobot_user, post).post_action
PostAction.defer_flags!(post, self.discobot_user)
result = PostActionCreator.notify_moderators(self.discobot_user, post)
result.reviewable.perform(self.discobot_user, :ignore)
end
PostDestroyer.new(@user, post, opts).destroy