forked from rDrama/rDrama
add SITE condition
parent
024c532bb3
commit
024542510d
|
@ -428,7 +428,9 @@ def comment(v):
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
def delete_comment(cid, v):
|
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)
|
c = get_comment(cid, v=v)
|
||||||
if not c.deleted_utc:
|
if not c.deleted_utc:
|
||||||
if c.author_id != v.id: abort(403)
|
if c.author_id != v.id: abort(403)
|
||||||
|
|
Loading…
Reference in New Issue