From 33a397b9fbe2cd8b503ea865d98350e9a15abe3c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 1 Apr 2020 09:24:42 +0000 Subject: [PATCH] Missing argument --- like.py | 5 +++-- outbox.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/like.py b/like.py index 1ce98d03..50891c04 100644 --- a/like.py +++ b/like.py @@ -584,7 +584,8 @@ def outboxLike(recentPostsCache: {}, \ if debug: 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, \ messageJson: {},debug: bool) -> None: """ 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(messageId) return True - undoLikesCollectionEntry(baseDir,postFilename,messageId, \ + undoLikesCollectionEntry(recentPostsCache,baseDir,postFilename,messageId, \ messageJson['actor'],domain,debug) if debug: print('DEBUG: post undo liked via c2s - '+postFilename) diff --git a/outbox.py b/outbox.py index d28dc7e2..b0c890fc 100644 --- a/outbox.py +++ b/outbox.py @@ -254,7 +254,8 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \ messageJson,debug) if debug: print('DEBUG: handle any undo like requests') - outboxUndoLike(baseDir,httpPrefix, \ + outboxUndoLike(recentPostsCache, \ + baseDir,httpPrefix, \ postToNickname,domain,port, \ messageJson,debug)