From 95218f994525e0b3cf794c6fa2ddd57a5ed9a83b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 22 Aug 2019 17:15:02 +0100 Subject: [PATCH] Debug --- daemon.py | 20 +++++++++++--------- webinterface.py | 1 - 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/daemon.py b/daemon.py index 6baddca9..c665b9c2 100644 --- a/daemon.py +++ b/daemon.py @@ -2263,17 +2263,19 @@ class PubServer(BaseHTTPRequestHandler): # also copy to the actors cache and personCache in memory storePersonInCache(self.server.baseDir,actorJson['id'],actorJson,self.server.personCache) actorCacheFilename=self.server.baseDir+'/cache/actors/'+actorJson['id'].replace('/','#')+'.json' + pprint(actorJson) + print('*************************updating actor cache: '+actorCacheFilename) with open(actorCacheFilename, 'w') as fp: commentjson.dump(actorJson, fp, indent=4, sort_keys=False) - # send actor update to followers - updateActorJson={ - 'type': 'Update', - 'actor': actorJson['id'], - 'to': ['https://www.w3.org/ns/activitystreams#Public'], - 'object': actorJson - } - self.postToNickname=nickname - self._postToOutbox(updateActorJson) + # send actor update to followers + updateActorJson={ + 'type': 'Update', + 'actor': actorJson['id'], + 'to': ['https://www.w3.org/ns/activitystreams#Public'], + 'object': actorJson + } + self.postToNickname=nickname + self._postToOutbox(updateActorJson) self._redirect_headers(actorStr,cookie) self.server.POSTbusy=False return diff --git a/webinterface.py b/webinterface.py index eff7c0d5..ca983a25 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1130,7 +1130,6 @@ def individualPostAsHtml(baseDir: str, \ messageId=postJsonObject['id'].replace('/activity','') preferredName=getPreferredName(postJsonObject['actor'],personCache) - print('***************** getPreferredName: '+postJsonObject['actor']+ ' = '+preferredName) if preferredName: titleStr+=''+preferredName+'' else: