Handle missing cw flag

main2
Bob Mottram 2019-10-17 23:45:02 +01:00
parent 838e2d1fc3
commit df22961f26
1 changed files with 5 additions and 4 deletions

View File

@ -2044,11 +2044,12 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
footerStr+='<span class="'+timeClass+'">'+publishedStr+'</span>'
footerStr+='</div>'
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)