Check for content

main
Bob Mottram 2019-11-29 22:49:17 +00:00
parent 182c529047
commit 2b59cd1490
1 changed files with 2 additions and 0 deletions

View File

@ -2474,6 +2474,8 @@ def individualPostAsHtml(recentPostsCache: {},maxRecentPosts: int, \
if not postJsonObject['object'].get('summary'): if not postJsonObject['object'].get('summary'):
postJsonObject['object']['summary']='' postJsonObject['object']['summary']=''
if not postJsonObject['object'].get('content'):
return ''
objectContent=removeLongWords(postJsonObject['object']['content'],40,[]) objectContent=removeLongWords(postJsonObject['object']['content'],40,[])
if not postJsonObject['object']['sensitive']: if not postJsonObject['object']['sensitive']:
contentStr=objectContent+attachmentStr contentStr=objectContent+attachmentStr