Trace for signed json

merge-requests/30/head
Bob Mottram 2021-09-20 17:05:11 +01:00
parent ac248a9783
commit 94e2be67ee
5 changed files with 14 additions and 11 deletions

View File

@ -181,7 +181,7 @@ def createAnnounce(session, baseDir: str, federationList: [],
httpPrefix, True, clientToServer, federationList,
sendThreads, postLog, cachedWebfingers, personCache,
debug, projectVersion, None, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 639633)
return newAnnounce

View File

@ -898,7 +898,8 @@ def followedAccountAccepts(session, baseDir: str, httpPrefix: str,
federationList,
sendThreads, postLog, cachedWebfingers,
personCache, debug, projectVersion, None,
groupAccount, signingPrivateKeyPem)
groupAccount, signingPrivateKeyPem,
7856837)
def followedAccountRejects(session, baseDir: str, httpPrefix: str,
@ -964,7 +965,8 @@ def followedAccountRejects(session, baseDir: str, httpPrefix: str,
federationList,
sendThreads, postLog, cachedWebfingers,
personCache, debug, projectVersion, None,
groupAccount, signingPrivateKeyPem)
groupAccount, signingPrivateKeyPem,
6393063)
def sendFollowRequest(session, baseDir: str,
@ -1032,7 +1034,7 @@ def sendFollowRequest(session, baseDir: str,
federationList,
sendThreads, postLog, cachedWebfingers, personCache,
debug, projectVersion, None, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 8234389)
return newFollowJson

View File

@ -2399,7 +2399,7 @@ def _bounceDM(senderPostId: str, session, httpPrefix: str,
httpPrefix, False, False, federationList,
sendThreads, postLog, cachedWebfingers,
personCache, debug, __version__, None, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 7238634)
return True

View File

@ -129,7 +129,7 @@ def _like(recentPostsCache: {},
httpPrefix, True, clientToServer, federationList,
sendThreads, postLog, cachedWebfingers, personCache,
debug, projectVersion, None, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 7367374)
return newLikeJson

View File

@ -2493,7 +2493,8 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
sendThreads: [], postLog: [], cachedWebfingers: {},
personCache: {}, debug: bool, projectVersion: str,
sharedItemsToken: str, groupAccount: bool,
signingPrivateKeyPem: str) -> int:
signingPrivateKeyPem: str,
sourceId: int) -> int:
"""Sends a signed json object to an inbox/outbox
"""
if debug:
@ -2559,7 +2560,7 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
personCache,
projectVersion, httpPrefix,
nickname, domain, postToBox,
30873)
sourceId)
print("inboxUrl: " + str(inboxUrl))
print("toPersonId: " + str(toPersonId))
@ -2879,7 +2880,7 @@ def sendToNamedAddresses(session, baseDir: str,
sendThreads, postLog, cachedWebfingers,
personCache, debug, projectVersion,
sharedItemsToken, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 34436782)
def _hasSharedInbox(session, httpPrefix: str, domain: str,
@ -3052,7 +3053,7 @@ def sendToFollowers(session, baseDir: str,
sendThreads, postLog, cachedWebfingers,
personCache, debug, projectVersion,
sharedItemsToken, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 639342)
else:
# send to individual followers without using a shared inbox
for handle in followerHandles:
@ -3081,7 +3082,7 @@ def sendToFollowers(session, baseDir: str,
sendThreads, postLog, cachedWebfingers,
personCache, debug, projectVersion,
sharedItemsToken, groupAccount,
signingPrivateKeyPem)
signingPrivateKeyPem, 634219)
time.sleep(4)