mirror of https://gitlab.com/bashrc2/epicyon
Don't include attachments for sensitive posts in opengraph
parent
ba02bb5435
commit
bc8bdf8a8a
|
@ -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 += \
|
||||
|
|
Loading…
Reference in New Issue