From dedfd6a370733f0707cca7485bc44427447f9d8e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 8 Feb 2022 15:19:28 +0200 Subject: [PATCH] fd --- files/routes/comments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 6fcfab1ce..69eeb1abc 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -164,7 +164,7 @@ def api_comment(v): body = request.values.get("body", "").strip()[:10000] - if v.admin_level == 3 and parent_post.id == 37749: + if v.admin_level > 1 and parent_post.id == 37749: with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f: f.write('\n{[para]}\n' + body) @@ -198,7 +198,7 @@ def api_comment(v): file.save(oldname) image = process_image(oldname) if image == "": return {"error":"Image upload failed"} - if v.admin_level == 3: + if v.admin_level > 2: if parent_post.id == 37696: filename = 'files/assets/images/Drama/sidebar/' + str(len(listdir('files/assets/images/Drama/sidebar'))+1) + '.webp' copyfile(oldname, filename)