From bc8bdf8a8a570aa3792e5fec55e52d7c9f3bef3e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Nov 2021 16:05:29 +0000 Subject: [PATCH] Don't include attachments for sensitive posts in opengraph --- webapp_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp_post.py b/webapp_post.py index 90b55cbaa..e2c821748 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -108,7 +108,7 @@ def _htmlPostMetadataOpenGraph(domain: str, postJsonObject: {}) -> str: metadata += \ " \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 += \