forked from indymedia/epicyon
Debug
parent
eacb37be48
commit
95218f9945
|
@ -2263,6 +2263,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# also copy to the actors cache and personCache in memory
|
# also copy to the actors cache and personCache in memory
|
||||||
storePersonInCache(self.server.baseDir,actorJson['id'],actorJson,self.server.personCache)
|
storePersonInCache(self.server.baseDir,actorJson['id'],actorJson,self.server.personCache)
|
||||||
actorCacheFilename=self.server.baseDir+'/cache/actors/'+actorJson['id'].replace('/','#')+'.json'
|
actorCacheFilename=self.server.baseDir+'/cache/actors/'+actorJson['id'].replace('/','#')+'.json'
|
||||||
|
pprint(actorJson)
|
||||||
|
print('*************************updating actor cache: '+actorCacheFilename)
|
||||||
with open(actorCacheFilename, 'w') as fp:
|
with open(actorCacheFilename, 'w') as fp:
|
||||||
commentjson.dump(actorJson, fp, indent=4, sort_keys=False)
|
commentjson.dump(actorJson, fp, indent=4, sort_keys=False)
|
||||||
# send actor update to followers
|
# send actor update to followers
|
||||||
|
|
|
@ -1130,7 +1130,6 @@ def individualPostAsHtml(baseDir: str, \
|
||||||
messageId=postJsonObject['id'].replace('/activity','')
|
messageId=postJsonObject['id'].replace('/activity','')
|
||||||
|
|
||||||
preferredName=getPreferredName(postJsonObject['actor'],personCache)
|
preferredName=getPreferredName(postJsonObject['actor'],personCache)
|
||||||
print('***************** getPreferredName: '+postJsonObject['actor']+ ' = '+preferredName)
|
|
||||||
if preferredName:
|
if preferredName:
|
||||||
titleStr+='<a href="'+messageId+'">'+preferredName+'</a>'
|
titleStr+='<a href="'+messageId+'">'+preferredName+'</a>'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue