forked from indymedia/epicyon
Debug for likes
parent
96eef930a9
commit
eaf2344caa
|
@ -2525,7 +2525,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
likeUrl)
|
likeUrl)
|
||||||
if likedPostFilename:
|
if likedPostFilename:
|
||||||
print('Updating likes for ' + likedPostFilename)
|
if self.server.debug:
|
||||||
|
print('Updating likes for ' + likedPostFilename)
|
||||||
updateLikesCollection(self.server.recentPostsCache,
|
updateLikesCollection(self.server.recentPostsCache,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
likedPostFilename, likeUrl,
|
likedPostFilename, likeUrl,
|
||||||
|
@ -2623,7 +2624,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
likeUrl)
|
likeUrl)
|
||||||
if likedPostFilename:
|
if likedPostFilename:
|
||||||
print('Removing likes for ' + likedPostFilename)
|
if self.server.debug:
|
||||||
|
print('Removing likes for ' + likedPostFilename)
|
||||||
undoLikesCollectionEntry(self.server.recentPostsCache,
|
undoLikesCollectionEntry(self.server.recentPostsCache,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
likedPostFilename, likeUrl,
|
likedPostFilename, likeUrl,
|
||||||
|
|
Loading…
Reference in New Issue