From 2a89554bb00958207d59c40726f759139c20513d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 3 Sep 2021 15:15:03 +0100 Subject: [PATCH] Debug --- daemon.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 690ad3563..057805741 100644 --- a/daemon.py +++ b/daemon.py @@ -7146,6 +7146,9 @@ class PubServer(BaseHTTPRequestHandler): print('Regenerating html post for changed likes collection') likedPostJson = loadJson(likedPostFilename, 0, 1) if likedPostJson: + print('Liked post json: ' + str(likedPostJson)) + print('Liked post nickname: ' + + self.postToNickname + ' ' + domain) boxName = 'inbox' pageNumber = 1 showIndividualPostIcons = True @@ -7176,7 +7179,8 @@ class PubServer(BaseHTTPRequestHandler): showIndividualPostIcons, manuallyApproveFollowers, False, True, False) - + else: + print('WARN: Liked post not found: ' + likedPostFilename) # clear the icon from the cache so that it gets updated if self.server.iconsCache.get('like.png'): del self.server.iconsCache['like.png'] @@ -7314,6 +7318,8 @@ class PubServer(BaseHTTPRequestHandler): showIndividualPostIcons, manuallyApproveFollowers, False, True, False) + else: + print('WARN: Unliked post not found: ' + likedPostFilename) # send out the undo like to followers self._postToOutbox(undoLikeJson, self.server.projectVersion, None) self.server.GETbusy = False