forked from indymedia/epicyon
Don't add content warning button to blog posts
parent
e81f7e618e
commit
4b488526ba
|
@ -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 = \
|
||||||
|
|
Loading…
Reference in New Issue