mirror of https://gitlab.com/bashrc2/epicyon
More debug
parent
972727cc8b
commit
42b0e03497
37
outbox.py
37
outbox.py
|
@ -211,15 +211,19 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
|
||||||
messageJson,debug, \
|
messageJson,debug, \
|
||||||
version)
|
version)
|
||||||
followersThreads.append(followersThread)
|
followersThreads.append(followersThread)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle any unfollow requests')
|
print('DEBUG: handle any unfollow requests')
|
||||||
outboxUndoFollow(baseDir,messageJson,debug)
|
outboxUndoFollow(baseDir,messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle delegation requests')
|
print('DEBUG: handle delegation requests')
|
||||||
outboxDelegate(baseDir,postToNickname,messageJson,debug)
|
outboxDelegate(baseDir,postToNickname,messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle skills changes requests')
|
print('DEBUG: handle skills changes requests')
|
||||||
outboxSkills(baseDir,postToNickname,messageJson,debug)
|
outboxSkills(baseDir,postToNickname,messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle availability changes requests')
|
print('DEBUG: handle availability changes requests')
|
||||||
outboxAvailability(baseDir,postToNickname,messageJson,debug)
|
outboxAvailability(baseDir,postToNickname,messageJson,debug)
|
||||||
|
@ -255,43 +259,50 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
|
||||||
postToNickname,domain, \
|
postToNickname,domain, \
|
||||||
messageJson,debug, \
|
messageJson,debug, \
|
||||||
allowDeletion)
|
allowDeletion)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle block requests')
|
print('DEBUG: handle block requests')
|
||||||
outboxBlock(baseDir,httpPrefix, \
|
outboxBlock(baseDir,httpPrefix, \
|
||||||
postToNickname,domain, \
|
postToNickname,domain, \
|
||||||
port,
|
port,
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle undo block requests')
|
print('DEBUG: handle undo block requests')
|
||||||
outboxUndoBlock(baseDir,httpPrefix, \
|
outboxUndoBlock(baseDir,httpPrefix, \
|
||||||
postToNickname,domain, \
|
postToNickname,domain, \
|
||||||
port,
|
port,
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle share uploads')
|
print('DEBUG: handle share uploads')
|
||||||
outboxShareUpload(baseDir,httpPrefix, \
|
outboxShareUpload(baseDir,httpPrefix, \
|
||||||
postToNickname,domain, \
|
postToNickname,domain, \
|
||||||
port,
|
port,
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: handle undo share uploads')
|
print('DEBUG: handle undo share uploads')
|
||||||
outboxUndoShareUpload(baseDir,httpPrefix, \
|
outboxUndoShareUpload(baseDir,httpPrefix, \
|
||||||
postToNickname,domain, \
|
postToNickname,domain, \
|
||||||
port,
|
port,
|
||||||
messageJson,debug)
|
messageJson,debug)
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: sending c2s post to named addresses')
|
print('DEBUG: sending c2s post to named addresses')
|
||||||
print('c2s sender: '+postToNickname+'@'+ \
|
if messageJson.get('to'):
|
||||||
domain+':'+str(port))
|
print('c2s sender: '+postToNickname+'@'+domain+':'+str(port)+ \
|
||||||
sendToNamedAddresses(server.session,baseDir, \
|
' recipient: '+messageJson['to'])
|
||||||
postToNickname,domain, \
|
else:
|
||||||
port, \
|
print('c2s sender: '+postToNickname+'@'+domain+':'+str(port))
|
||||||
httpPrefix, \
|
sendToNamedAddresses(server.session,baseDir, \
|
||||||
federationList, \
|
postToNickname,domain,port, \
|
||||||
sendThreads, \
|
httpPrefix, \
|
||||||
postLog, \
|
federationList, \
|
||||||
cachedWebfingers, \
|
sendThreads, \
|
||||||
personCache, \
|
postLog, \
|
||||||
messageJson,debug, \
|
cachedWebfingers, \
|
||||||
version)
|
personCache, \
|
||||||
|
messageJson,debug, \
|
||||||
|
version)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue