diff --git a/webinterface.py b/webinterface.py
index 2657b183..dd8af7a1 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -56,7 +56,8 @@ def individualPostAsHtml(postJsonObject: {}) -> str:
if '/statuses/' in postJsonObject['object']['inReplyTo']:
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
- titleStr+=' replying to @'+replyNickname+'@'+replyDomain+''
+ if replyNickname and replyDomain:
+ titleStr+=' replying to @'+replyNickname+'@'+replyDomain+''
else:
titleStr+=' replying to '+postJsonObject['object']['inReplyTo']
attachmentStr=''