Liking announces

main
Bob Mottram 2021-10-13 23:10:23 +01:00
parent 3d797a27b7
commit a5032e0dcc
1 changed files with 8 additions and 4 deletions

View File

@ -7395,11 +7395,13 @@ class PubServer(BaseHTTPRequestHandler):
if announceLikedFilename:
updateLikesCollection(recentPostsCache,
baseDir,
announceLikedFilename,
announceLikeUrl,
likedPostFilename,
likeUrl,
likeActor,
self.postToNickname,
domain, debug)
likeUrl = announceLikeUrl
likedPostFilename = announceLikedFilename
# if debug:
print('Updating likes for ' + likedPostFilename)
updateLikesCollection(recentPostsCache,
@ -7561,10 +7563,12 @@ class PubServer(BaseHTTPRequestHandler):
if announceLikedFilename:
undoLikesCollectionEntry(recentPostsCache,
baseDir,
announceLikedFilename,
announceLikeUrl,
likedPostFilename,
likeUrl,
undoActor, domain,
debug)
likeUrl = announceLikeUrl
likedPostFilename = announceLikedFilename
if debug:
print('Removing likes for ' + likedPostFilename)
undoLikesCollectionEntry(recentPostsCache,