Don't add content warning button to blog posts

main
Bob Mottram 2020-07-03 11:18:48 +01:00
parent e81f7e618e
commit 4b488526ba
1 changed files with 3 additions and 2 deletions

View File

@ -4182,8 +4182,9 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int,
cwContentStr = \ cwContentStr = \
insertQuestion(baseDir, translate, nickname, domain, port, insertQuestion(baseDir, translate, nickname, domain, port,
cwContentStr, postJsonObject, pageNumber) cwContentStr, postJsonObject, pageNumber)
# get the content warning button if not isBlogPost(postJsonObject):
contentStr += getContentWarningButton(postID, translate, cwContentStr) # get the content warning button
contentStr += getContentWarningButton(postID, translate, cwContentStr)
if postJsonObject['object'].get('tag') and not isPatch: if postJsonObject['object'].get('tag') and not isPatch:
contentStr = \ contentStr = \