Indentation

main2
Bob Mottram 2019-11-07 12:56:00 +00:00
parent d17b984bbb
commit f80fd83998
2 changed files with 15 additions and 12 deletions

View File

@ -3115,7 +3115,7 @@ class PubServer(BaseHTTPRequestHandler):
postBytes=self.rfile.read(length)
msg = email.parser.BytesParser().parsebytes(postBytes)
msg = email.parser.BytesParser().parsebytes(postBytes)
messageFields=msg.get_payload(decode=False).split(boundary)
fields={}
filename=None
@ -3375,8 +3375,8 @@ class PubServer(BaseHTTPRequestHandler):
updateActorJson={
'type': 'Update',
'actor': actorJson['id'],
'to': ['https://www.w3.org/ns/activitystreams#Public'],
'cc': [actorJson['id']+'/followers'],
'to': [actorJson['id']+'/followers'],
'cc': [],
'object': actorJson
}
self.postToNickname=nickname

View File

@ -1705,15 +1705,18 @@ def sendToFollowers(session,baseDir: str, \
for handle in followerHandles:
toNickname=handle.split('@')[0]
if debug:
print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
sendSignedJson(postJsonObject,session,baseDir, \
nickname,domain,port, \
toNickname,toDomain,toPort, \
cc,httpPrefix,True,clientToServer, \
federationList, \
sendThreads,postLog,cachedWebfingers, \
personCache,debug,projectVersion)
if debug:
if postJsonObject['type']!='Update':
print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
else:
print('DEBUG: Sending update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
sendSignedJson(postJsonObject,session,baseDir, \
nickname,domain,port, \
toNickname,toDomain,toPort, \
cc,httpPrefix,True,clientToServer, \
federationList, \
sendThreads,postLog,cachedWebfingers, \
personCache,debug,projectVersion)
if debug:
print('DEBUG: End of sendToFollowers')