Handle missing cw flag

main2
Bob Mottram 2019-10-17 23:42:25 +01:00
parent 5494d6afc8
commit 838e2d1fc3
1 changed files with 5 additions and 1 deletions

View File

@ -2044,7 +2044,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
footerStr+='<span class="'+timeClass+'">'+publishedStr+'</span>'
footerStr+='</div>'
if not postJsonObject['object']['sensitive']:
isSensitive=False
if postJsonObject['object'].get('sensitive'):
isSensitive=postJsonObject['object']['sensitive']:
if not isSensitive:
contentStr=postJsonObject['object']['content']+attachmentStr
contentStr=addEmbeddedElements(translate,contentStr)
contentStr=insertQuestion(translate,nickname,contentStr,postJsonObject,pageNumber)