From 838e2d1fc31e5069828c6e12a3d36545f3bf4428 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 17 Oct 2019 23:42:25 +0100 Subject: [PATCH] Handle missing cw flag --- webinterface.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index 3c62360a0..34d3dd875 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2044,7 +2044,11 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ footerStr+=''+publishedStr+'' footerStr+='' - 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)