From 471b36d065bc0c278b7e93fa1ff1df2feae35741 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 14:57:32 +0100 Subject: [PATCH] Get nickname from different source --- webinterface.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/webinterface.py b/webinterface.py index b25dc0d4f..7ae460122 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1080,16 +1080,10 @@ def individualPostAsHtml(baseDir: str, \ messageId=postJsonObject['id'].replace('/activity','') titleStr+='@'+actorNickname+'@'+actorDomain+'' - if isAnnounced and postJsonObject['object'].get('actor'): - announceNickname=getNicknameFromActor(postJsonObject['object']['actor']) - announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['actor']) - if postJsonObject['object'].get('atomUri'): - titleStr+=' announced @'+announceNickname+'@'+announceDomain+'' - else: - if postJsonObject['object'].get('id'): - titleStr+=' announced @'+announceNickname+'@'+announceDomain+'' - else: - titleStr+=' announced' + if isAnnounced and postJsonObject['object'].get('atomUri'): + announceNickname=getNicknameFromActor(postJsonObject['object']['atomUri']) + announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['atomUri']) + titleStr+=' announced @'+announceNickname+'@'+announceDomain+'' if not isAnnounced and postJsonObject['object'].get('inReplyTo'): containerClassIcons='containericons darker'