Skip to content

Commit

Permalink
AutoMod: disable inbox replies on comments
Browse files Browse the repository at this point in the history
AutoModerator doesn't care about any of the replies to its comments
coming into its inbox, so we might as well avoid all this unnecessary
updating.
  • Loading branch information
Deimos committed May 20, 2015
1 parent ca4f790 commit 9e4d166
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions r2/r2/lib/automoderator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,7 @@ def perform_actions(self, item, data):
new_comment, inbox_rel = Comment._new(
ACCOUNT, link, parent_comment, comment, None)
new_comment.distinguished = "yes"
new_comment.sendreplies = False
new_comment._commit()
queries.queue_vote(ACCOUNT, new_comment, True, None)
queries.new_comment(new_comment, inbox_rel)
Expand Down

0 comments on commit 9e4d166

Please sign in to comment.