Missing argument

main
Bob Mottram 2019-11-24 22:05:46 +00:00
parent 880d0ff1c4
commit 4d16e41f34
1 changed files with 6 additions and 3 deletions

View File

@ -1209,7 +1209,8 @@ def receiveAnnounce(recentPostsCache: {}, \
print('DEBUG: announced/repeated post arrived in inbox') print('DEBUG: announced/repeated post arrived in inbox')
return True 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, \ httpPrefix: str,domain :str,port: int, \
sendThreads: [],postLog: [],cachedWebfingers: {}, \ sendThreads: [],postLog: [],cachedWebfingers: {}, \
personCache: {},messageJson: {},federationList: [], \ personCache: {},messageJson: {},federationList: [], \
@ -1255,7 +1256,8 @@ def receiveUndoAnnounce(session,handle: str,isGroup: bool,baseDir: str, \
if debug: if debug:
print("DEBUG: Attempt to undo something which isn't an announcement") print("DEBUG: Attempt to undo something which isn't an announcement")
return False return False
undoAnnounceCollectionEntry(baseDir,postFilename,messageJson['actor'],domain,debug) undoAnnounceCollectionEntry(recentPostsCache,baseDir,postFilename, \
messageJson['actor'],domain,debug)
if os.path.isfile(postFilename): if os.path.isfile(postFilename):
os.remove(postFilename) os.remove(postFilename)
return True return True
@ -1705,7 +1707,8 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \
if debug: if debug:
print('DEBUG: Announce accepted from '+actor) print('DEBUG: Announce accepted from '+actor)
if receiveUndoAnnounce(session,handle,isGroup, \ if receiveUndoAnnounce(recentPostsCache, \
session,handle,isGroup, \
baseDir,httpPrefix, \ baseDir,httpPrefix, \
domain,port, \ domain,port, \
sendThreads,postLog, \ sendThreads,postLog, \