forked from indymedia/epicyon
Get actor earlier
parent
387eeb09f0
commit
0f98309731
|
@ -1037,6 +1037,8 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
else:
|
else:
|
||||||
print('Downloading Announce content for '+postJsonObject['object'])
|
print('Downloading Announce content for '+postJsonObject['object'])
|
||||||
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
|
asHeader = {'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||||
|
actorNickname=getNicknameFromActor(postJsonObject['actor'])
|
||||||
|
actorDomain,actorPort=getDomainFromActor(postJsonObject['actor'])
|
||||||
announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain)
|
announcedJson = getJson(session,postJsonObject['object'],asHeader,None,projectVersion,httpPrefix,domain)
|
||||||
if announcedJson:
|
if announcedJson:
|
||||||
if not announcedJson.get('actor'):
|
if not announcedJson.get('actor'):
|
||||||
|
@ -1046,10 +1048,6 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
if announcedJson['type']!='Note':
|
if announcedJson['type']!='Note':
|
||||||
return ''
|
return ''
|
||||||
# wrap in create to be consistent with other posts
|
# wrap in create to be consistent with other posts
|
||||||
pprint(announcedJson)
|
|
||||||
actorNickname=getNicknameFromActor(announcedJson['actor'])
|
|
||||||
actorDomain,actorPort=getDomainFromActor(announcedJson['actor'])
|
|
||||||
print('>>>>>>>>>>>>>>>>>'+actorNickname+'@'+actorDomain)
|
|
||||||
announcedJson= \
|
announcedJson= \
|
||||||
outboxMessageCreateWrap(httpPrefix, \
|
outboxMessageCreateWrap(httpPrefix, \
|
||||||
actorNickname,actorDomain,actorPort, \
|
actorNickname,actorDomain,actorPort, \
|
||||||
|
|
Loading…
Reference in New Issue