From a3f59712e82091aa6e4a0fb7b3d215f65255adc0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 6 Feb 2024 23:45:56 +0200 Subject: [PATCH] remove weird unneeded line --- files/routes/posts.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index c1cfb8743..0d218f9f1 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -775,9 +775,6 @@ def mark_post_nsfw(pid, v): if p.author_id != v.id and v.admin_level < PERMS['POST_COMMENT_MODERATION'] and not (p.hole and v.mods_hole(p.hole)): abort(403) - if p.nsfw and v.is_permabanned: - abort(403) - p.nsfw = True g.db.add(p)