mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
a5032e0dcc
commit
054f4bde8e
20
daemon.py
20
daemon.py
|
@ -7402,22 +7402,26 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
domain, debug)
|
domain, debug)
|
||||||
likeUrl = announceLikeUrl
|
likeUrl = announceLikeUrl
|
||||||
likedPostFilename = announceLikedFilename
|
likedPostFilename = announceLikedFilename
|
||||||
# if debug:
|
if debug:
|
||||||
print('Updating likes for ' + likedPostFilename)
|
print('Updating likes for ' + likedPostFilename)
|
||||||
updateLikesCollection(recentPostsCache,
|
updateLikesCollection(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')
|
||||||
|
# clear the icon from the cache so that it gets updated
|
||||||
|
if self.server.iconsCache.get('like.png'):
|
||||||
|
del self.server.iconsCache['like.png']
|
||||||
if likedPostJson:
|
if likedPostJson:
|
||||||
cachedPostFilename = \
|
cachedPostFilename = \
|
||||||
getCachedPostFilename(baseDir, self.postToNickname,
|
getCachedPostFilename(baseDir, self.postToNickname,
|
||||||
domain, likedPostJson)
|
domain, likedPostJson)
|
||||||
print('Liked post json: ' + str(likedPostJson))
|
if debug:
|
||||||
print('Liked post nickname: ' +
|
print('Liked post json: ' + str(likedPostJson))
|
||||||
self.postToNickname + ' ' + domain)
|
print('Liked post nickname: ' +
|
||||||
print('Liked post cache: ' + str(cachedPostFilename))
|
self.postToNickname + ' ' + domain)
|
||||||
|
print('Liked post cache: ' + str(cachedPostFilename))
|
||||||
showIndividualPostIcons = True
|
showIndividualPostIcons = True
|
||||||
manuallyApproveFollowers = \
|
manuallyApproveFollowers = \
|
||||||
followerApprovalActive(baseDir,
|
followerApprovalActive(baseDir,
|
||||||
|
|
Loading…
Reference in New Issue