From 9729b37be048823e256c6b2759f6d50c1d0086ac Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Jun 2020 10:10:10 +0100 Subject: [PATCH] Like url --- daemon.py | 4 ++-- utils.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index a6775836..a6e34510 100644 --- a/daemon.py +++ b/daemon.py @@ -2523,7 +2523,7 @@ class PubServer(BaseHTTPRequestHandler): likedPostFilename = locatePost(self.server.baseDir, self.postToNickname, self.server.domain, - actorLiked) + likeUrl) if likedPostFilename: print('Updating likes for ' + likedPostFilename) updateLikesCollection(self.server.recentPostsCache, @@ -2621,7 +2621,7 @@ class PubServer(BaseHTTPRequestHandler): likedPostFilename = locatePost(self.server.baseDir, self.postToNickname, self.server.domain, - actorLiked) + likeUrl) if likedPostFilename: print('Removing likes for ' + likedPostFilename) undoLikesCollectionEntry(self.server.recentPostsCache, diff --git a/utils.py b/utils.py index f7a66584..a7974d48 100644 --- a/utils.py +++ b/utils.py @@ -356,8 +356,7 @@ def locatePost(baseDir: str, nickname: str, domain: str, if os.path.isfile(postFilename): return postFilename - print('WARN: unable to locate ' + nickname + ' ' + - postUrl) + print('WARN: unable to locate ' + nickname + ' ' + postUrl) return None