mirror of https://gitlab.com/bashrc2/epicyon
Don't show the generic sensitive cw
parent
fc88148b2d
commit
8fb02acff4
|
@ -2715,15 +2715,6 @@ def individual_post_as_html(signing_priv_key_pem: str,
|
||||||
# sensitive posts should have a summary
|
# sensitive posts should have a summary
|
||||||
if post_json_object['object'].get('summary'):
|
if post_json_object['object'].get('summary'):
|
||||||
post_is_sensitive = post_json_object['object']['sensitive']
|
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'):
|
if not post_json_object['object'].get('summary'):
|
||||||
post_json_object['object']['summary'] = ''
|
post_json_object['object']['summary'] = ''
|
||||||
|
|
Loading…
Reference in New Issue