From 7816f2883345984e5dac74df1ec83324584e01f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 24 Mar 2022 13:35:12 +0000 Subject: [PATCH] Add bold later after pgp check --- webapp_post.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index bf10079c0..abddedb6a 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1983,13 +1983,14 @@ def individual_post_as_html(signing_priv_key_pem: str, post_json_object['object']['type'], summary_str, content_str) - if bold_reading and not is_patch and not displaying_ciphertext: - content_str = bold_reading_string(content_str) - _log_post_timing(enable_timing_log, post_start_time, '16') if not is_pgp_encrypted(content_str): if not is_patch: + # Add bold text + if bold_reading and not displaying_ciphertext: + content_str = bold_reading_string(content_str) + object_content = \ remove_long_words(content_str, 40, []) object_content = remove_text_formatting(object_content)