mirror of https://gitlab.com/bashrc2/epicyon
Remove duplicated clear
parent
396edbcc79
commit
4c14d606ef
11
daemon.py
11
daemon.py
|
@ -7389,6 +7389,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
print('Locating liked post ' + likeUrl)
|
print('Locating liked post ' + likeUrl)
|
||||||
# directly like the post file
|
# directly like the post file
|
||||||
|
likedPostJson = None
|
||||||
likedPostFilename = \
|
likedPostFilename = \
|
||||||
locatePost(baseDir, self.postToNickname, domain, likeUrl)
|
locatePost(baseDir, self.postToNickname, domain, likeUrl)
|
||||||
if likedPostFilename:
|
if likedPostFilename:
|
||||||
|
@ -7410,8 +7411,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
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
|
# 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,
|
||||||
|
@ -7558,6 +7557,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self._postToOutbox(undoLikeJson, self.server.projectVersion, None)
|
self._postToOutbox(undoLikeJson, self.server.projectVersion, None)
|
||||||
|
|
||||||
# directly undo the like within the post file
|
# directly undo the like within the post file
|
||||||
|
likedPostJson = None
|
||||||
likedPostFilename = locatePost(baseDir,
|
likedPostFilename = locatePost(baseDir,
|
||||||
self.postToNickname,
|
self.postToNickname,
|
||||||
domain, likeUrl)
|
domain, likeUrl)
|
||||||
|
@ -7576,9 +7576,6 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
baseDir,
|
baseDir,
|
||||||
likedPostFilename, likeUrl,
|
likedPostFilename, likeUrl,
|
||||||
undoActor, domain, debug)
|
undoActor, domain, debug)
|
||||||
# clear the icon from the cache so that it gets updated
|
|
||||||
if self.server.iconsCache.get('like_inactive.png'):
|
|
||||||
del self.server.iconsCache['like_inactive.png']
|
|
||||||
if debug:
|
if debug:
|
||||||
print('Regenerating html post for changed likes collection')
|
print('Regenerating html post for changed likes collection')
|
||||||
if likedPostJson:
|
if likedPostJson:
|
||||||
|
@ -7615,7 +7612,9 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
False, True, False)
|
False, True, False)
|
||||||
else:
|
else:
|
||||||
print('WARN: Unliked post not found: ' + likedPostFilename)
|
print('WARN: Unliked post not found: ' + likedPostFilename)
|
||||||
|
# clear the icon from the cache so that it gets updated
|
||||||
|
if self.server.iconsCache.get('like_inactive.png'):
|
||||||
|
del self.server.iconsCache['like_inactive.png']
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
actorAbsolute = self._getInstalceUrl(callingDomain) + actor
|
actorAbsolute = self._getInstalceUrl(callingDomain) + actor
|
||||||
actorPathStr = \
|
actorPathStr = \
|
||||||
|
|
Loading…
Reference in New Issue