This commit is contained in:
Aevann1 2021-10-08 17:11:22 +02:00
parent 04bf2de69b
commit 909600fff2

View file

@ -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())