fix spam check

pull/48/head
Aevann1 2022-12-05 03:31:21 +02:00
parent 2057c48ebd
commit 5070cb4fc0
1 changed files with 1 additions and 0 deletions

View File

@ -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}")