From 173670f4721b0b6400d99a6e6f227a748da24c89 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 31 Jul 2019 19:33:57 +0100 Subject: [PATCH] Show announcements in web interface --- webinterface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 0a93bce4a..f043925d4 100644 --- a/webinterface.py +++ b/webinterface.py @@ -457,9 +457,9 @@ def individualPostAsHtml(baseDir: str, \ asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'} announcedJson = getJson(session,postJsonObject['object'],asHeader,None) if announcedJson: - if not postJsonObject.get('type'): + if not announcedJson.get('type'): return '' - if postJsonObject['type']!='Create': + if announcedJson['type']!='Create': return '' actorNickname=getNicknameFromActor(postJsonObject['actor']) actorDomain,actorPort=getDomainFromActor(postJsonObject['actor'])