From 024542510dc0f3336f86167afb470e9196086901 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 1 Sep 2023 10:56:44 +0300 Subject: [PATCH] add SITE condition --- files/routes/comments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 7540cf5fa0..944917e7bd 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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)