add SITE condition

pull/198/head
Aevann 2023-09-01 10:56:44 +03:00
parent 024c532bb3
commit 024542510d
1 changed files with 3 additions and 1 deletions

View File

@ -428,7 +428,9 @@ def comment(v):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required
def delete_comment(cid, v):
if v.id == 253: abort(403)
if SITE == 'rdrama.net' and v.id == 253:
abort(403)
c = get_comment(cid, v=v)
if not c.deleted_utc:
if c.author_id != v.id: abort(403)