mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
5a4a2a4ab2
commit
2a89554bb0
|
@ -7146,6 +7146,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
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:
|
||||||
|
print('Liked post json: ' + str(likedPostJson))
|
||||||
|
print('Liked post nickname: ' +
|
||||||
|
self.postToNickname + ' ' + domain)
|
||||||
boxName = 'inbox'
|
boxName = 'inbox'
|
||||||
pageNumber = 1
|
pageNumber = 1
|
||||||
showIndividualPostIcons = True
|
showIndividualPostIcons = True
|
||||||
|
@ -7176,7 +7179,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
showIndividualPostIcons,
|
showIndividualPostIcons,
|
||||||
manuallyApproveFollowers,
|
manuallyApproveFollowers,
|
||||||
False, True, False)
|
False, True, False)
|
||||||
|
else:
|
||||||
|
print('WARN: Liked post not found: ' + likedPostFilename)
|
||||||
# clear the icon from the cache so that it gets updated
|
# clear the icon from the cache so that it gets updated
|
||||||
if self.server.iconsCache.get('like.png'):
|
if self.server.iconsCache.get('like.png'):
|
||||||
del self.server.iconsCache['like.png']
|
del self.server.iconsCache['like.png']
|
||||||
|
@ -7314,6 +7318,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
showIndividualPostIcons,
|
showIndividualPostIcons,
|
||||||
manuallyApproveFollowers,
|
manuallyApproveFollowers,
|
||||||
False, True, False)
|
False, True, False)
|
||||||
|
else:
|
||||||
|
print('WARN: Unliked post not found: ' + likedPostFilename)
|
||||||
# send out the undo like to followers
|
# send out the undo like to followers
|
||||||
self._postToOutbox(undoLikeJson, self.server.projectVersion, None)
|
self._postToOutbox(undoLikeJson, self.server.projectVersion, None)
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
|
|
Loading…
Reference in New Issue