mirror of https://gitlab.com/bashrc2/epicyon
Missing argument
parent
24fabc7c4f
commit
7b8925ce08
9
inbox.py
9
inbox.py
|
@ -1098,7 +1098,8 @@ def receiveDelete(session,handle: str,isGroup: bool,baseDir: str, \
|
||||||
print('DEBUG: post deleted - '+postFilename)
|
print('DEBUG: post deleted - '+postFilename)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def receiveAnnounce(session,handle: str,isGroup: bool,baseDir: str, \
|
def receiveAnnounce(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: [], \
|
||||||
|
@ -1158,7 +1159,8 @@ def receiveAnnounce(session,handle: str,isGroup: bool,baseDir: str, \
|
||||||
print('DEBUG: announce post not found in inbox or outbox')
|
print('DEBUG: announce post not found in inbox or outbox')
|
||||||
print(messageJson['object'])
|
print(messageJson['object'])
|
||||||
return True
|
return True
|
||||||
updateAnnounceCollection(baseDir,postFilename,messageJson['actor'],domain,debug)
|
updateAnnounceCollection(recentPostsCache,baseDir,postFilename, \
|
||||||
|
messageJson['actor'],domain,debug)
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Downloading announce post '+messageJson['actor']+' -> '+messageJson['object'])
|
print('DEBUG: Downloading announce post '+messageJson['actor']+' -> '+messageJson['object'])
|
||||||
postJsonObject=downloadAnnounce(session,baseDir,httpPrefix,nickname,domain,messageJson,__version__)
|
postJsonObject=downloadAnnounce(session,baseDir,httpPrefix,nickname,domain,messageJson,__version__)
|
||||||
|
@ -1681,7 +1683,8 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
print('DEBUG: Undo bookmark accepted from '+actor)
|
print('DEBUG: Undo bookmark accepted from '+actor)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if receiveAnnounce(session,handle,isGroup, \
|
if receiveAnnounce(recentPostsCache, \
|
||||||
|
session,handle,isGroup, \
|
||||||
baseDir,httpPrefix, \
|
baseDir,httpPrefix, \
|
||||||
domain,port, \
|
domain,port, \
|
||||||
sendThreads,postLog, \
|
sendThreads,postLog, \
|
||||||
|
|
Loading…
Reference in New Issue