From c18cac1b70b28c409db8c864cfdec21b3d2b1019 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 9 Mar 2024 14:05:02 +0200 Subject: [PATCH] fix publishing --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index cbb9ab876..270cd064b 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -92,7 +92,7 @@ def publish(pid, v): execute_snappy(p, v) - if flag_effortpost and not (SITE_NAME == 'WPD' and v.truescore < 500): + if p.effortpost and not (SITE_NAME == 'WPD' and v.truescore < 500): body = f"@{v.username} has requested that {p.textlink} be marked as an effortpost!" alert_admins(body)