From 5070cb4fc031037714321f5a259194381d532872 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Dec 2022 03:31:21 +0200 Subject: [PATCH] fix spam check --- files/routes/comments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/comments.py b/files/routes/comments.py index 21757357e..217eae319 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -424,6 +424,7 @@ def wall_comment(v): Comment.deleted_utc == 0, Comment.parent_comment_id == parent_comment_id, Comment.parent_submission == None, + Comment.wall_user_id == parent_user.id, Comment.body_html == body_html ).first() if existing: abort(409, f"You already made that comment: /comment/{existing.id}")