diff --git a/webapp_post.py b/webapp_post.py index 000e063f1..6b00a93f9 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -772,6 +772,10 @@ def getPostTitleAnnounceHtml(baseDir: str, if announceAvatarUrl: idx = 'Show options for this person' if '/users/news/' not in announceAvatarUrl: + brokenLinkSubstitute = \ + " onerror=\"this.onerror=null; this.src='" + \ + iconsPath + "/avatar_default.png'\"" + replyAvatarImageInPost = \ ' ' \ '
' \ ' \n
\n' else: titleStr += \ @@ -959,6 +964,10 @@ def getPostTitleReplyHtml(baseDir: str, logPostTiming(enableTimingLog, postStartTime, '13.8') if replyAvatarUrl: + brokenLinkSubstitute = \ + " onerror=\"this.onerror=null; this.src='" + \ + iconsPath + "/avatar_default.png'\"" + replyAvatarImageInPost = \ '
\n' @@ -979,8 +988,8 @@ def getPostTitleReplyHtml(baseDir: str, translate['Show profile'] replyAvatarImageInPost += \ '" alt=" "' + \ - avatarPosition + '/>\n' + \ - '
\n' + avatarPosition + brokenLinkSubstitute + \ + '/>\n \n' else: inReplyTo = \ postJsonObject['object']['inReplyTo']