forked from indymedia/epicyon
Stray else
parent
57d957dbef
commit
d6b350dc4b
|
@ -1094,17 +1094,16 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
containerClass='container darker'
|
containerClass='container darker'
|
||||||
avatarPosition=' class="right"'
|
avatarPosition=' class="right"'
|
||||||
#timeClass='time-left'
|
#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+=' <i class="replyingto">replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
|
||||||
else:
|
else:
|
||||||
if '/statuses/' in postJsonObject['object']['inReplyTo']:
|
postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
|
||||||
replyNickname=getNicknameFromActor(postJsonObject['object']['inReplyTo'])
|
if '/' in postDomain:
|
||||||
replyDomain,replyPort=getDomainFromActor(postJsonObject['object']['inReplyTo'])
|
postDomain=postDomain.split('/',1)[0]
|
||||||
if replyNickname and replyDomain:
|
titleStr+=' <i class="replyingto">replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">'+postDomain+'</a>'
|
||||||
titleStr+=' <i class="replyingto">replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">@'+replyNickname+'@'+replyDomain+'</a>'
|
|
||||||
else:
|
|
||||||
postDomain=postJsonObject['object']['inReplyTo'].replace('https://','').replace('http://','').replace('dat://','')
|
|
||||||
if '/' in postDomain:
|
|
||||||
postDomain=postDomain.split('/',1)[0]
|
|
||||||
titleStr+=' <i class="replyingto">replying to</i> <a href="'+postJsonObject['object']['inReplyTo']+'">'+postDomain+'</a>'
|
|
||||||
attachmentStr=''
|
attachmentStr=''
|
||||||
if postJsonObject['object']['attachment']:
|
if postJsonObject['object']['attachment']:
|
||||||
if isinstance(postJsonObject['object']['attachment'], list):
|
if isinstance(postJsonObject['object']['attachment'], list):
|
||||||
|
|
Loading…
Reference in New Issue