From 2b59cd1490e475f23d04d266778a51173f9be439 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 22:49:17 +0000 Subject: [PATCH] Check for content --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index 99bd868ef..76bdfaf42 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2474,6 +2474,8 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \ if not postJsonObject['object'].get('summary'): postJsonObject['object']['summary']='' + if not postJsonObject['object'].get('content'): + return '' objectContent=removeLongWords(postJsonObject['object']['content'],40,[]) if not postJsonObject['object']['sensitive']: contentStr=objectContent+attachmentStr