Show announcements in web interface

master
Bob Mottram 2019-07-31 19:33:57 +01:00
parent 662cfe5744
commit 173670f472
1 changed files with 2 additions and 2 deletions

View File

@ -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'])