Extra summary changes

merge-requests/30/head
Bob Mottram 2024-01-17 20:11:31 +00:00
parent ecd29b6d54
commit 6b8e620496
1 changed files with 7 additions and 0 deletions

View File

@ -2789,6 +2789,13 @@ def individual_post_as_html(signing_priv_key_pem: str,
if not summary_str:
summary_str = get_summary_from_post(post_json_object, system_language,
languages_understood)
if content_str:
# add dogwhistle warnings to summary
summary_str = _add_dogwhistle_warnings(summary_str, content_str,
dogwhistles, translate)
# add automatic content warnings
summary_str = add_auto_cw(base_dir, nickname, domain,
summary_str, content_str)
_log_post_timing(enable_timing_log, post_start_time, '16')