Don't include attachments for sensitive posts in opengraph

main
Bob Mottram 2021-11-07 16:05:29 +00:00
parent ba02bb5435
commit bc8bdf8a8a
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str:
metadata += \
" <meta content=\"" + objJson['published'] + \
"\" property=\"og:published_time\" />\n"
if not objJson.get('attachment'):
if not objJson.get('attachment') or objJson.get('sensitive'):
if objJson.get('content') and not objJson.get('sensitive'):
description = removeHtml(objJson['content'])
metadata += \