mirror of https://gitlab.com/bashrc2/epicyon
Update when receiving likes
parent
6e21a3b84f
commit
9d937826bc
6
inbox.py
6
inbox.py
|
@ -964,13 +964,13 @@ def _receiveLike(recentPostsCache: {},
|
|||
|
||||
handleName = handle.split('@')[0]
|
||||
handleDom = handle.split('@')[1]
|
||||
updateLikesCollection(recentPostsCache, baseDir, postFilename,
|
||||
messageJson['object'],
|
||||
messageJson['actor'], domain, debug)
|
||||
if not _alreadyLiked(baseDir,
|
||||
handleName, handleDom,
|
||||
messageJson['object'],
|
||||
messageJson['actor']):
|
||||
updateLikesCollection(recentPostsCache, baseDir, postFilename,
|
||||
messageJson['object'],
|
||||
messageJson['actor'], domain, debug)
|
||||
_likeNotify(baseDir, domain, onionDomain, handle,
|
||||
messageJson['actor'], messageJson['object'])
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue