diff --git a/webinterface.py b/webinterface.py index 34d3dd875..2c4589ab4 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2044,11 +2044,12 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ footerStr+=''+publishedStr+'' footerStr+='' - isSensitive=False - if postJsonObject['object'].get('sensitive'): - isSensitive=postJsonObject['object']['sensitive']: + if not postJsonObject['object'].get('sensitive'): + postJsonObject['object']['sensitive']=True + if not postJsonObject['object'].get('summary'): + postJsonObject['object']['summary']='sensitive' - if not isSensitive: + if not postJsonObject['object']['sensitive']: contentStr=postJsonObject['object']['content']+attachmentStr contentStr=addEmbeddedElements(translate,contentStr) contentStr=insertQuestion(translate,nickname,contentStr,postJsonObject,pageNumber)