From d6b350dc4b0d8fb554cc4adbdc2debf9da75bd8e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 14:15:20 +0100 Subject: [PATCH] Stray else --- webinterface.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/webinterface.py b/webinterface.py index 65634a3aa..0f6d24407 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1094,17 +1094,16 @@ def individualPostAsHtml(baseDir: str, \ containerClass='container darker' avatarPosition=' class="right"' #timeClass='time-left' + if '/statuses/' in postJsonObject['object']['inReplyTo']: + replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) + replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) + if replyNickname and replyDomain: + titleStr+=' replying to @'+replyNickname+'@'+replyDomain+'' else: - if '/statuses/' in postJsonObject['object']['inReplyTo']: - replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo']) - replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo']) - if replyNickname and replyDomain: - titleStr+=' replying to @'+replyNickname+'@'+replyDomain+'' - else: - postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','') - if '/' in postDomain: - postDomain=postDomain.split('/',1)[0] - titleStr+=' replying to '+postDomain+'' + postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','') + if '/' in postDomain: + postDomain=postDomain.split('/',1)[0] + titleStr+=' replying to '+postDomain+'' attachmentStr='' if postJsonObject['object']['attachment']: if isinstance(postJsonObject['object']['attachment'], list):