forked from indymedia/epicyon
Like url
parent
a927d4ef58
commit
9729b37be0
|
@ -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,
|
||||||
|
|
3
utils.py
3
utils.py
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue