From dba210d6e8eced56ecd614fc6a1e068c29bb7a6c Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 29 Feb 2024 23:19:30 +0200 Subject: [PATCH] fix prev commit --- files/routes/posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 8e00a1073..9b2612f4d 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -600,10 +600,6 @@ def submit_post(v, hole=None): if SITE == 'watchpeopledie.tv': p.cw = request.values.get("cw", False, bool) - if p.hole == 'selfharm': - g.db.flush() - text = f"ALERT: @{v.username} has added a Child Warning to {p.textlink} despite the post being in /h/selfharm" - alert_admins(text) if not p.draft: p.chudded = v.chud and hole != 'chudrama' and not (p.is_longpost and not v.chudded_by) @@ -631,6 +627,10 @@ def submit_post(v, hole=None): g.db.add(p) g.db.flush() + if SITE == 'watchpeopledie.tv' and p.cw and p.hole == 'selfharm': + text = f"ALERT: @{v.username} has added a Child Warning to {p.textlink} despite the post being in /h/selfharm" + alert_admins(text) + execute_under_siege(v, p, p.body, 'post') process_options(v, p)