mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 17:51:16 +08:00
FIX: Incorrect API in narrative bot
This commit is contained in:
@ -149,8 +149,8 @@ module DiscourseNarrativeBot
|
|||||||
if SiteSetting.delete_removed_posts_after < 1
|
if SiteSetting.delete_removed_posts_after < 1
|
||||||
opts[:delete_removed_posts_after] = 1
|
opts[:delete_removed_posts_after] = 1
|
||||||
|
|
||||||
flag = PostActionCreator.notify_moderators(self.discobot_user, post).post_action
|
result = PostActionCreator.notify_moderators(self.discobot_user, post)
|
||||||
PostAction.defer_flags!(post, self.discobot_user)
|
result.reviewable.perform(self.discobot_user, :ignore)
|
||||||
end
|
end
|
||||||
|
|
||||||
PostDestroyer.new(@user, post, opts).destroy
|
PostDestroyer.new(@user, post, opts).destroy
|
||||||
|
Reference in New Issue
Block a user