From 4b488526ba57c1bf88a23d219b88334de9832767 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Jul 2020 11:18:48 +0100 Subject: [PATCH] Don't add content warning button to blog posts --- webinterface.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 0b3223f04..cd3cfe3ae 100644 --- a/webinterface.py +++ b/webinterface.py @@ -4182,8 +4182,9 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, cwContentStr = \ insertQuestion(baseDir, translate, nickname, domain, port, cwContentStr, postJsonObject, pageNumber) - # get the content warning button - contentStr += getContentWarningButton(postID, translate, cwContentStr) + if not isBlogPost(postJsonObject): + # get the content warning button + contentStr += getContentWarningButton(postID, translate, cwContentStr) if postJsonObject['object'].get('tag') and not isPatch: contentStr = \