forked from indymedia/epicyon
Show announcements in web interface
parent
662cfe5744
commit
173670f472
|
@ -457,9 +457,9 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||||
announcedJson = getJson(session,postJsonObject['object'],asHeader,None)
|
announcedJson = getJson(session,postJsonObject['object'],asHeader,None)
|
||||||
if announcedJson:
|
if announcedJson:
|
||||||
if not postJsonObject.get('type'):
|
if not announcedJson.get('type'):
|
||||||
return ''
|
return ''
|
||||||
if postJsonObject['type']!='Create':
|
if announcedJson['type']!='Create':
|
||||||
return ''
|
return ''
|
||||||
actorNickname=getNicknameFromActor(postJsonObject['actor'])
|
actorNickname=getNicknameFromActor(postJsonObject['actor'])
|
||||||
actorDomain,actorPort=getDomainFromActor(postJsonObject['actor'])
|
actorDomain,actorPort=getDomainFromActor(postJsonObject['actor'])
|
||||||
|
|
Loading…
Reference in New Issue