mirror of https://gitlab.com/bashrc2/epicyon
Missing argument
parent
df5effc3c5
commit
33a397b9fb
5
like.py
5
like.py
|
@ -584,7 +584,8 @@ def outboxLike(recentPostsCache: {}, \
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: post liked via c2s - '+postFilename)
|
print('DEBUG: post liked via c2s - '+postFilename)
|
||||||
|
|
||||||
def outboxUndoLike(baseDir: str,httpPrefix: str, \
|
def outboxUndoLike(recentPostsCache: {}, \
|
||||||
|
baseDir: str,httpPrefix: str, \
|
||||||
nickname: str,domain: str,port: int, \
|
nickname: str,domain: str,port: int, \
|
||||||
messageJson: {},debug: bool) -> None:
|
messageJson: {},debug: bool) -> None:
|
||||||
""" When an undo like request is received by the outbox from c2s
|
""" When an undo like request is received by the outbox from c2s
|
||||||
|
@ -627,7 +628,7 @@ def outboxUndoLike(baseDir: str,httpPrefix: str, \
|
||||||
print('DEBUG: c2s undo like post not found in inbox or outbox')
|
print('DEBUG: c2s undo like post not found in inbox or outbox')
|
||||||
print(messageId)
|
print(messageId)
|
||||||
return True
|
return True
|
||||||
undoLikesCollectionEntry(baseDir,postFilename,messageId, \
|
undoLikesCollectionEntry(recentPostsCache,baseDir,postFilename,messageId, \
|
||||||
messageJson['actor'],domain,debug)
|
messageJson['actor'],domain,debug)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: post undo liked via c2s - '+postFilename)
|
print('DEBUG: post undo liked via c2s - '+postFilename)
|
||||||
|
|
|
@ -254,7 +254,8 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle any undo like requests')
|
print('DEBUG: handle any undo like requests')
|
||||||
outboxUndoLike(baseDir,httpPrefix, \
|
outboxUndoLike(recentPostsCache, \
|
||||||
|
baseDir,httpPrefix, \
|
||||||
postToNickname,domain,port, \
|
postToNickname,domain,port, \
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue