forked from indymedia/epicyon
Check that nickname exists
parent
f8cee3f847
commit
99828da5ec
|
@ -56,6 +56,7 @@ def individualPostAsHtml(postJsonObject: {}) -> str:
|
||||||
if '/statuses/' in postJsonObject['object']['inReplyTo']:
|
if '/statuses/' in postJsonObject['object']['inReplyTo']:
|
||||||
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
|
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
|
||||||
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
|
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
|
||||||
|
if replyNickname and replyDomain:
|
||||||
titleStr+=' <i>replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
|
titleStr+=' <i>replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
|
||||||
else:
|
else:
|
||||||
titleStr+=' <i>replying to</i> '+postJsonObject['object']['inReplyTo']
|
titleStr+=' <i>replying to</i> '+postJsonObject['object']['inReplyTo']
|
||||||
|
|
Loading…
Reference in New Issue