don't reply to deleted posts/comments

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-04 17:18:19 -07:00 committed by GitHub
parent 635e35204e
commit 0a82ca0c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ def comment(v):
level = parent.level + 1
if parent.author_id == v.id: rts = True
else: abort(400)
if parent.deleted_utc != 0: abort(404)
body = request.values.get("body", "").strip().replace('','')