Debug for likes

main
Bob Mottram 2020-06-07 10:18:17 +01:00
parent 96eef930a9
commit eaf2344caa
1 changed files with 4 additions and 2 deletions

View File

@ -2525,7 +2525,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.domain,
likeUrl)
if likedPostFilename:
print('Updating likes for ' + likedPostFilename)
if self.server.debug:
print('Updating likes for ' + likedPostFilename)
updateLikesCollection(self.server.recentPostsCache,
self.server.baseDir,
likedPostFilename, likeUrl,
@ -2623,7 +2624,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.domain,
likeUrl)
if likedPostFilename:
print('Removing likes for ' + likedPostFilename)
if self.server.debug:
print('Removing likes for ' + likedPostFilename)
undoLikesCollectionEntry(self.server.recentPostsCache,
self.server.baseDir,
likedPostFilename, likeUrl,