mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
1a3c47bf02
commit
4347ff7574
|
@ -7130,19 +7130,20 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'to': [actorLiked],
|
'to': [actorLiked],
|
||||||
'object': likeUrl
|
'object': likeUrl
|
||||||
}
|
}
|
||||||
|
print('Locating liked post')
|
||||||
# directly like the post file
|
# directly like the post file
|
||||||
likedPostFilename = locatePost(baseDir,
|
likedPostFilename = locatePost(baseDir,
|
||||||
self.postToNickname,
|
self.postToNickname,
|
||||||
domain,
|
domain,
|
||||||
likeUrl)
|
likeUrl)
|
||||||
if likedPostFilename:
|
if likedPostFilename:
|
||||||
if debug:
|
#if debug:
|
||||||
print('Updating likes for ' + likedPostFilename)
|
print('Updating likes for ' + likedPostFilename)
|
||||||
updateLikesCollection(self.server.recentPostsCache,
|
updateLikesCollection(self.server.recentPostsCache,
|
||||||
baseDir, likedPostFilename, likeUrl,
|
baseDir, likedPostFilename, likeUrl,
|
||||||
likeActor, self.postToNickname, domain,
|
likeActor, self.postToNickname, domain,
|
||||||
debug)
|
debug)
|
||||||
if debug:
|
#if debug:
|
||||||
print('Regenerating html post for changed likes collection')
|
print('Regenerating html post for changed likes collection')
|
||||||
likedPostJson = loadJson(likedPostFilename, 0, 1)
|
likedPostJson = loadJson(likedPostFilename, 0, 1)
|
||||||
if likedPostJson:
|
if likedPostJson:
|
||||||
|
|
Loading…
Reference in New Issue