From 99828da5ececda3c2a6c4e23e9af786f7c96e8cc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 21 Jul 2019 14:05:07 +0100 Subject: [PATCH] Check that nickname exists --- webinterface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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=''