forked from indymedia/epicyon
Remove like icon from cache when its status changes
parent
222375f2ab
commit
3d3b307e8d
10
daemon.py
10
daemon.py
|
@ -5704,6 +5704,11 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
likedPostFilename, likeUrl,
|
likedPostFilename, likeUrl,
|
||||||
likeActor, domain,
|
likeActor, domain,
|
||||||
debug)
|
debug)
|
||||||
|
# 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 self.server.iconsCache.get('like_inactive.png'):
|
||||||
|
del self.server.iconsCache['like_inactive.png']
|
||||||
else:
|
else:
|
||||||
print('WARN: unable to locate file for liked post ' +
|
print('WARN: unable to locate file for liked post ' +
|
||||||
likeUrl)
|
likeUrl)
|
||||||
|
@ -5808,6 +5813,11 @@ 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.png'):
|
||||||
|
del self.server.iconsCache['like.png']
|
||||||
|
if self.server.iconsCache.get('like_inactive.png'):
|
||||||
|
del self.server.iconsCache['like_inactive.png']
|
||||||
# send out the undo like to followers
|
# send out the undo like to followers
|
||||||
self._postToOutbox(undoLikeJson, self.server.projectVersion)
|
self._postToOutbox(undoLikeJson, self.server.projectVersion)
|
||||||
self.server.GETbusy = False
|
self.server.GETbusy = False
|
||||||
|
|
Loading…
Reference in New Issue