From 6dc55a19884371c21d45c14f21946d2c1950fd51 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Sep 2019 12:59:42 +0100 Subject: [PATCH] Show announce avatar --- webinterface.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webinterface.py b/webinterface.py index 80ab356d..99487478 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1799,6 +1799,16 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \ announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache) if announceDisplayName: titleStr+=' '+announceDisplayName+'' + # show avatar of person replied to + announceActor=postJsonObject['object']['attributedTo'] + announceAvatarUrl=getPersonAvatarUrl(baseDir,announceActor,personCache) + if announceAvatarUrl: + replyAvatarImageInPost= \ + '
' \ + '' \ + 'Avatar
' else: titleStr+=' @'+announceNickname+'@'+announceDomain+'' else: