mirror of https://gitlab.com/bashrc2/epicyon
Don't change liked object
parent
b000e0aba9
commit
9e1cdfe8da
|
@ -7402,8 +7402,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
domain, debug)
|
||||
likeUrl = announceLikeUrl
|
||||
likedPostFilename = announceLikedFilename
|
||||
likedPostJson = \
|
||||
loadJson(likedPostFilename, 0, 1)
|
||||
if debug:
|
||||
print('Updating likes for ' + likedPostFilename)
|
||||
updateLikesCollection(recentPostsCache,
|
||||
|
@ -7575,8 +7573,6 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
debug)
|
||||
likeUrl = announceLikeUrl
|
||||
likedPostFilename = announceLikedFilename
|
||||
likedPostJson = \
|
||||
loadJson(likedPostFilename, 0, 1)
|
||||
if debug:
|
||||
print('Removing likes for ' + likedPostFilename)
|
||||
undoLikesCollectionEntry(recentPostsCache,
|
||||
|
|
4
inbox.py
4
inbox.py
|
@ -962,8 +962,6 @@ def _receiveLike(recentPostsCache: {},
|
|||
likeActor,
|
||||
handleName,
|
||||
domain, debug)
|
||||
likedPostJson = \
|
||||
loadJson(postFilename, 0, 1)
|
||||
if likedPostJson:
|
||||
if debug:
|
||||
cachedPostFilename = \
|
||||
|
@ -1072,8 +1070,6 @@ def _receiveUndoLike(recentPostsCache: {},
|
|||
undoLikesCollectionEntry(recentPostsCache, baseDir,
|
||||
postFilename, postLikedId,
|
||||
likeActor, domain, debug)
|
||||
likedPostJson = \
|
||||
loadJson(postFilename, 0, 1)
|
||||
if likedPostJson:
|
||||
if debug:
|
||||
cachedPostFilename = \
|
||||
|
|
Loading…
Reference in New Issue