diff --git a/webapp_post.py b/webapp_post.py index c778aeda5..e2c821748 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -108,8 +108,8 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str: metadata += \ " \n" - if not objJson.get('attachment'): - if objJson.get('content'): + if not objJson.get('attachment') or objJson.get('sensitive'): + if objJson.get('content') and not objJson.get('sensitive'): description = removeHtml(objJson['content']) metadata += \ " str: elif attachJson['mediaType'].startswith('audio/'): description = 'Attached: 1 audio' if description: - if objJson.get('content'): + if objJson.get('content') and not objJson.get('sensitive'): description += '\n\n' + removeHtml(objJson['content']) metadata += \ "