From d0b46be5bb7ab4b4d33ccaca9dbcc32d968acf03 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 6 Nov 2021 20:07:29 +0200 Subject: [PATCH] fsdfds --- 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 45d3923ff4..62b3f067aa 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -193,7 +193,7 @@ def api_comment(v): if ban.reason: reason += f" {ban.reason}" return {"error": reason}, 401 - existing = g.db.query(Comment.id).filter(Comment.author_id == v.id, + existing = g.db.query(Comment.permalink).filter(Comment.author_id == v.id, Comment.deleted_utc == 0, Comment.parent_comment_id == parent_comment_id, Comment.parent_submission == parent_submission,