From 7200c12e4444606ee99dd7acbd96a59637641cae Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 24 Nov 2019 21:53:25 +0000 Subject: [PATCH] Missing argument --- inbox.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/inbox.py b/inbox.py index a579cbe91..c3c6011fa 100644 --- a/inbox.py +++ b/inbox.py @@ -909,7 +909,8 @@ def receiveUndoLike(recentPostsCache: {}, \ messageJson['object'],messageJson['actor'],domain,debug) return True -def receiveBookmark(session,handle: str,isGroup: bool,baseDir: str, \ +def receiveBookmark(recentPostsCache: {}, \ + session,handle: str,isGroup: bool,baseDir: str, \ httpPrefix: str,domain :str,port: int, \ sendThreads: [],postLog: [],cachedWebfingers: {}, \ personCache: {},messageJson: {},federationList: [], \ @@ -967,10 +968,12 @@ def receiveBookmark(session,handle: str,isGroup: bool,baseDir: str, \ if debug: print('DEBUG: bookmarked post was found') - updateBookmarksCollection(baseDir,postFilename,messageJson['object'],messageJson['actor'],domain,debug) + updateBookmarksCollection(recentPostsCache,baseDir,postFilename, \ + messageJson['object'],messageJson['actor'],domain,debug) return True -def receiveUndoBookmark(session,handle: str,isGroup: bool,baseDir: str, \ +def receiveUndoBookmark(recentPostsCache: {}, \ + session,handle: str,isGroup: bool,baseDir: str, \ httpPrefix: str,domain :str,port: int, \ sendThreads: [],postLog: [],cachedWebfingers: {}, \ personCache: {},messageJson: {},federationList: [], \ @@ -1029,7 +1032,8 @@ def receiveUndoBookmark(session,handle: str,isGroup: bool,baseDir: str, \ return True if debug: print('DEBUG: bookmarked post found. Now undoing.') - undoBookmarksCollectionEntry(baseDir,postFilename,messageJson['object'],messageJson['actor'],domain,debug) + undoBookmarksCollectionEntry(recentPostsCache: {},baseDir,postFilename, \ + messageJson['object'],messageJson['actor'],domain,debug) return True def receiveDelete(session,handle: str,isGroup: bool,baseDir: str, \