Check that nickname exists

This commit is contained in:
bashrc committed 2019-07-21 14:05:07 +01:00
1 parent f8cee3f847
commit 99828da5ec
1 file changed
+2 -1
+2 -1
View File
@@ -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+=' <i>replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
if replyNickname and replyDomain:
titleStr+=' <i>replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
else:
titleStr+=' <i>replying to</i> '+postJsonObject['object']['inReplyTo']
attachmentStr=''