From 254798d0d4c358bcae664b40d2872cc0dddcaa8a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 11 Nov 2022 06:42:58 +0200 Subject: [PATCH] fix 500 error in WPD/PCM --- files/routes/posts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index a77ebf99a..8ac084cc4 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -777,7 +777,8 @@ def submit_post(v, sub=None): if url and url.startswith(SITE_FULL): url = url.split(SITE_FULL)[1] - if v.agendaposter == 1: sub = 'chudrama' + if SITE == 'rdrama.net' and v.agendaposter == 1: + sub = 'chudrama' post = Submission( private=bool(request.values.get("private","")),