main
Bob Mottram 2020-06-07 10:10:10 +01:00
parent a927d4ef58
commit 9729b37be0
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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