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, likedPostFilename = locatePost(self.server.baseDir,
self.postToNickname, self.postToNickname,
self.server.domain, self.server.domain,
actorLiked) likeUrl)
if likedPostFilename: if likedPostFilename:
print('Updating likes for ' + likedPostFilename) print('Updating likes for ' + likedPostFilename)
updateLikesCollection(self.server.recentPostsCache, updateLikesCollection(self.server.recentPostsCache,
@ -2621,7 +2621,7 @@ class PubServer(BaseHTTPRequestHandler):
likedPostFilename = locatePost(self.server.baseDir, likedPostFilename = locatePost(self.server.baseDir,
self.postToNickname, self.postToNickname,
self.server.domain, self.server.domain,
actorLiked) likeUrl)
if likedPostFilename: if likedPostFilename:
print('Removing likes for ' + likedPostFilename) print('Removing likes for ' + likedPostFilename)
undoLikesCollectionEntry(self.server.recentPostsCache, undoLikesCollectionEntry(self.server.recentPostsCache,

View File

@ -356,8 +356,7 @@ def locatePost(baseDir: str, nickname: str, domain: str,
if os.path.isfile(postFilename): if os.path.isfile(postFilename):
return postFilename return postFilename
print('WARN: unable to locate ' + nickname + ' ' + print('WARN: unable to locate ' + nickname + ' ' + postUrl)
postUrl)
return None return None