diff --git a/webinterface.py b/webinterface.py
index b817c0b3a..9dd309989 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1398,12 +1398,15 @@ def individualPostAsHtml(baseDir: str, \
if isAnnounced:
if postJsonObject['object'].get('attributedTo'):
announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo'])
- announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
- announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
- if announceDisplayName:
- titleStr+=' '+announceDisplayName+''
+ if announceNickname:
+ announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo'])
+ announceDisplayName=getDisplayName(postJsonObject['object']['attributedTo'],personCache)
+ if announceDisplayName:
+ titleStr+=' '+announceDisplayName+''
+ else:
+ titleStr+=' @'+announceNickname+'@'+announceDomain+''
else:
- titleStr+=' @'+announceNickname+'@'+announceDomain+''
+ titleStr+=' @unattributed'
else:
titleStr+=' @unattributed'
else: