From 0286294931197799aa9ecf8c5caf3338f0a84b0e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Jul 2021 21:33:26 +0100 Subject: [PATCH] Show annonce even if avatar is not available --- webapp_post.py | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index e87c76675..c14cf8035 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -825,20 +825,21 @@ def _getPostTitleAnnounceHtml(baseDir: str, _logPostTiming(enableTimingLog, postStartTime, '13.4') - if announceAvatarUrl: - idx = 'Show options for this person' - if '/users/news/' not in announceAvatarUrl: - replyAvatarImageInPost = \ - '
\n' \ - ' ' \ - ' \n
\n' + if not announceAvatarUrl: + announceAvatarUrl = '' + idx = 'Show options for this person' + if '/users/news/' not in announceAvatarUrl: + replyAvatarImageInPost = \ + '
\n' \ + ' ' \ + ' \n
\n' return (titleStr, replyAvatarImageInPost, containerClassIcons, containerClass)