From 4e6c7fe6836222383a03161606d33c201c61cace Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 10 Jul 2022 16:34:11 +0200 Subject: [PATCH] don't notify on drafts --- 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 fda6ddfe59..25f82e1bae 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1082,7 +1082,7 @@ def submit_post(v, sub=None): send_discord_message(post.permalink) cache.delete_memoized(changeloglist) - if SITE == 'watchpeopledie.co': + if not post.private and SITE == 'watchpeopledie.co': send_wpd_message(post.permalink) if request.headers.get("Authorization"): return post.json