diff --git a/webinterface.py b/webinterface.py
index 7cbece2f..a7c87c5d 100644
--- a/webinterface.py
+++ b/webinterface.py
@@ -1809,24 +1809,27 @@ def individualPostAsHtml(iconsDir: str,translate: {}, \
containerClassIcons='containericons darker'
containerClass='container darker'
#avatarPosition=' class="right"'
- if '/statuses/' in postJsonObject['object']['inReplyTo']:
- replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
- if replyNickname:
- replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
- if replyNickname and replyDomain:
- replyDisplayName=getDisplayName(postJsonObject['object']['inReplyTo'],personCache)
- if replyDisplayName:
- titleStr+=' '+replyDisplayName+''
- else:
- titleStr+=' @'+replyNickname+'@'+replyDomain+''
- else:
- titleStr+=' @unknown'
+ if postJsonObject['object']['inReplyTo'].startswith(postJsonObject['actor']):
+ titleStr+=' '
else:
- postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
- if '/' in postDomain:
- postDomain=postDomain.split('/',1)[0]
- if postDomain:
- titleStr+=' '+postDomain+''
+ if '/statuses/' in postJsonObject['object']['inReplyTo']:
+ replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
+ if replyNickname:
+ replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
+ if replyNickname and replyDomain:
+ replyDisplayName=getDisplayName(postJsonObject['object']['inReplyTo'],personCache)
+ if replyDisplayName:
+ titleStr+=' '+replyDisplayName+''
+ else:
+ titleStr+=' @'+replyNickname+'@'+replyDomain+''
+ else:
+ titleStr+=' @unknown'
+ else:
+ postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
+ if '/' in postDomain:
+ postDomain=postDomain.split('/',1)[0]
+ if postDomain:
+ titleStr+=' '+postDomain+''
attachmentStr=''
if postJsonObject['object'].get('attachment'):
if isinstance(postJsonObject['object']['attachment'], list):