diff --git a/webinterface.py b/webinterface.py
index 994874784..a38bde6cf 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1793,26 +1793,29 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
if showRepeatIcon:
if isAnnounced:
if postJsonObject['object'].get('attributedTo'):
- announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
- if announceNickname:
- announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
- 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= \
- '
'
- else:
- titleStr+=' @'+announceNickname+'@'+announceDomain+''
+ if postJsonObject['object']['attributedTo'].startswith(postJsonObject['actor']):
+ titleStr+=' '
else:
- titleStr+=' @unattributed'
+ announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
+ if announceNickname:
+ announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
+ 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= \
+ ''
+ else:
+ titleStr+=' @'+announceNickname+'@'+announceDomain+''
+ else:
+ titleStr+=' @unattributed'
else:
titleStr+=' @unattributed'
else: