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'