Don't show the generic sensitive cw

merge-requests/30/head
Bob Mottram 2024-04-14 21:56:04 +01:00
parent fc88148b2d
commit 8fb02acff4
1 changed files with 0 additions and 9 deletions

View File

@ -2715,15 +2715,6 @@ def individual_post_as_html(signing_priv_key_pem: str,
# sensitive posts should have a summary
if post_json_object['object'].get('summary'):
post_is_sensitive = post_json_object['object']['sensitive']
else:
# add a generic summary if none is provided
sensitive_str = 'Sensitive'
if translate.get(sensitive_str):
sensitive_str = translate[sensitive_str]
post_json_object['object']['summary'] = sensitive_str
post_json_object['object']['summaryMap'] = {
system_language: sensitive_str
}
if not post_json_object['object'].get('summary'):
post_json_object['object']['summary'] = ''