From 4d16e41f3461c7b0ae53fe663361a10a796b0d3c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 24 Nov 2019 22:05:46 +0000 Subject: [PATCH] Missing argument --- inbox.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index f82213b0..a5848b1a 100644 --- a/inbox.py +++ b/inbox.py @@ -1209,7 +1209,8 @@ def receiveAnnounce(recentPostsCache: {}, \ print('DEBUG: announced/repeated post arrived in inbox') return True -def receiveUndoAnnounce(session,handle: str,isGroup: bool,baseDir: str, \ +def receiveUndoAnnounce(recentPostsCache: {}, \ + session,handle: str,isGroup: bool,baseDir: str, \ httpPrefix: str,domain :str,port: int, \ sendThreads: [],postLog: [],cachedWebfingers: {}, \ personCache: {},messageJson: {},federationList: [], \ @@ -1255,7 +1256,8 @@ def receiveUndoAnnounce(session,handle: str,isGroup: bool,baseDir: str, \ if debug: print("DEBUG: Attempt to undo something which isn't an announcement") return False - undoAnnounceCollectionEntry(baseDir,postFilename,messageJson['actor'],domain,debug) + undoAnnounceCollectionEntry(recentPostsCache,baseDir,postFilename, \ + messageJson['actor'],domain,debug) if os.path.isfile(postFilename): os.remove(postFilename) return True @@ -1705,7 +1707,8 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \ if debug: print('DEBUG: Announce accepted from '+actor) - if receiveUndoAnnounce(session,handle,isGroup, \ + if receiveUndoAnnounce(recentPostsCache, \ + session,handle,isGroup, \ baseDir,httpPrefix, \ domain,port, \ sendThreads,postLog, \