diff --git a/webapp_post.py b/webapp_post.py index 6590672da..94e844f3a 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1087,6 +1087,9 @@ def _get_post_title_announce_html(base_dir: str, person_cache, allow_downloads) announce_display_name = \ get_display_name(base_dir, attributed_to, person_cache) + if announce_display_name: + if len(announce_display_name) < 2: + announce_display_name = None if not announce_display_name: announce_display_name = announce_nickname + '@' + announce_domain @@ -1147,7 +1150,8 @@ def _reply_to_yourself_html(actor: str, display_name: str, replying_to_themselves_str = translate[replying_to_themselves_str] title_str = \ ' ' + display_name + '\n' + \ + '" class="announceOrReply">\n' + \ '