From 4347ff75749f9bc2488cc5dcee199226e0a55c5e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Sep 2021 15:24:14 +0100 Subject: [PATCH] Debug --- daemon.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 7e1ff7ce9..9a516b5c5 100644 --- a/daemon.py +++ b/daemon.py @@ -7130,20 +7130,21 @@ class PubServer(BaseHTTPRequestHandler): 'to': [actorLiked], 'object': likeUrl } + print('Locating liked post') # directly like the post file likedPostFilename = locatePost(baseDir, self.postToNickname, domain, likeUrl) if likedPostFilename: - if debug: - print('Updating likes for ' + likedPostFilename) + #if debug: + print('Updating likes for ' + likedPostFilename) updateLikesCollection(self.server.recentPostsCache, baseDir, likedPostFilename, likeUrl, likeActor, self.postToNickname, domain, debug) - if debug: - print('Regenerating html post for changed likes collection') + #if debug: + print('Regenerating html post for changed likes collection') likedPostJson = loadJson(likedPostFilename, 0, 1) if likedPostJson: cachedPostFilename = \