diff --git a/files/routes/comments.py b/files/routes/comments.py index 0c298c460..09552ada4 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -767,11 +767,9 @@ def delete_comment(cid, v): c = g.db.query(Comment).options(lazyload('*')).filter_by(id=cid).first() - if not c: - abort(404) + if not c: abort(404) - if not c.author_id == v.id: - abort(403) + if not c.author_id == v.id: abort(403) c.deleted_utc = int(time.time())