From b92ab4806232e13a449cf72f6c69f0add861bdf8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 3 Sep 2021 23:49:08 +0200 Subject: [PATCH] fd --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 4bc242e189..51fd4b51ab 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -307,7 +307,7 @@ def api_comment(v): g.db.add(c_based) g.db.flush() - if level == 1: basedguy = get_account(c.parent_submission.author_id) + if level == 1: basedguy = get_account(c.post.author_id) else: basedguy = get_account(c.parent_comment.author_id) basedguy.basedcount += 1 g.db.add(basedguy)