mirror of https://gitlab.com/bashrc2/epicyon
Get nickname from different source
parent
ddcbef2848
commit
471b36d065
|
@ -1080,16 +1080,10 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
messageId=postJsonObject['id'].replace('/activity','')
|
messageId=postJsonObject['id'].replace('/activity','')
|
||||||
|
|
||||||
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
titleStr+='<a href="'+messageId+'">@'+actorNickname+'@'+actorDomain+'</a>'
|
||||||
if isAnnounced and postJsonObject['object'].get('actor'):
|
if isAnnounced and postJsonObject['object'].get('atomUri'):
|
||||||
announceNickname=getNicknameFromActor(postJsonObject['object']['actor'])
|
announceNickname=getNicknameFromActor(postJsonObject['object']['atomUri'])
|
||||||
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['actor'])
|
announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['atomUri'])
|
||||||
if postJsonObject['object'].get('atomUri'):
|
titleStr+=' <i class="replyingto">announced</i> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
||||||
titleStr+=' <i class="replyingto">announced</i> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
|
||||||
else:
|
|
||||||
if postJsonObject['object'].get('id'):
|
|
||||||
titleStr+=' <i class="replyingto">announced</i> <a href="'+postJsonObject['object']['id']+'">@'+announceNickname+'@'+announceDomain+'</a>'
|
|
||||||
else:
|
|
||||||
titleStr+=' <i class="replyingto">announced</i>'
|
|
||||||
|
|
||||||
if not isAnnounced and postJsonObject['object'].get('inReplyTo'):
|
if not isAnnounced and postJsonObject['object'].get('inReplyTo'):
|
||||||
containerClassIcons='containericons darker'
|
containerClassIcons='containericons darker'
|
||||||
|
|
Loading…
Reference in New Issue