mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 23:08:22 -05:00
Don't count deletions of already-deleted comments.
This commit is contained in:
@@ -678,6 +678,7 @@ class ApiController(RedditController):
|
||||
def POST_del(self, thing):
|
||||
if not thing: return
|
||||
'''for deleting all sorts of things'''
|
||||
was_deleted = thing._deleted
|
||||
thing._deleted = True
|
||||
if (getattr(thing, "promoted", None) is not None and
|
||||
not promote.is_promoted(thing)):
|
||||
@@ -706,7 +707,8 @@ class ApiController(RedditController):
|
||||
if parent_link.is_self:
|
||||
recipient = Account._byID(parent_link.author_id)
|
||||
|
||||
delete_comment(thing)
|
||||
if not was_deleted:
|
||||
delete_comment(thing)
|
||||
|
||||
if recipient:
|
||||
inbox_class = Inbox.rel(Account, Comment)
|
||||
|
||||
Reference in New Issue
Block a user