From a8af2e6e992945ccb4b2ccf000a4a9df797cde6b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 20 Aug 2019 15:00:46 +0100 Subject: [PATCH] Use attributedTo --- webinterface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webinterface.py b/webinterface.py index 7ae46012..86226d0f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1080,9 +1080,9 @@ def individualPostAsHtml(baseDir: str, \ messageId=postJsonObject['id'].replace('/activity','') titleStr+='@'+actorNickname+'@'+actorDomain+'' - if isAnnounced and postJsonObject['object'].get('atomUri'): - announceNickname=getNicknameFromActor(postJsonObject['object']['atomUri']) - announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['atomUri']) + if isAnnounced and postJsonObject['object'].get('attributedTo'): + announceNickname=getNicknameFromActor(postJsonObject['object']['attributedTo']) + announceDomain,announcePort=getDomainFromActor(postJsonObject['object']['attributedTo']) titleStr+=' announced @'+announceNickname+'@'+announceDomain+'' if not isAnnounced and postJsonObject['object'].get('inReplyTo'):