mirror of https://gitlab.com/bashrc2/epicyon
Trace for signed json
parent
ac248a9783
commit
94e2be67ee
|
@ -181,7 +181,7 @@ def createAnnounce(session, baseDir: str, federationList: [],
|
||||||
httpPrefix, True, clientToServer, federationList,
|
httpPrefix, True, clientToServer, federationList,
|
||||||
sendThreads, postLog, cachedWebfingers, personCache,
|
sendThreads, postLog, cachedWebfingers, personCache,
|
||||||
debug, projectVersion, None, groupAccount,
|
debug, projectVersion, None, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 639633)
|
||||||
|
|
||||||
return newAnnounce
|
return newAnnounce
|
||||||
|
|
||||||
|
|
|
@ -898,7 +898,8 @@ def followedAccountAccepts(session, baseDir: str, httpPrefix: str,
|
||||||
federationList,
|
federationList,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, projectVersion, None,
|
personCache, debug, projectVersion, None,
|
||||||
groupAccount, signingPrivateKeyPem)
|
groupAccount, signingPrivateKeyPem,
|
||||||
|
7856837)
|
||||||
|
|
||||||
|
|
||||||
def followedAccountRejects(session, baseDir: str, httpPrefix: str,
|
def followedAccountRejects(session, baseDir: str, httpPrefix: str,
|
||||||
|
@ -964,7 +965,8 @@ def followedAccountRejects(session, baseDir: str, httpPrefix: str,
|
||||||
federationList,
|
federationList,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, projectVersion, None,
|
personCache, debug, projectVersion, None,
|
||||||
groupAccount, signingPrivateKeyPem)
|
groupAccount, signingPrivateKeyPem,
|
||||||
|
6393063)
|
||||||
|
|
||||||
|
|
||||||
def sendFollowRequest(session, baseDir: str,
|
def sendFollowRequest(session, baseDir: str,
|
||||||
|
@ -1032,7 +1034,7 @@ def sendFollowRequest(session, baseDir: str,
|
||||||
federationList,
|
federationList,
|
||||||
sendThreads, postLog, cachedWebfingers, personCache,
|
sendThreads, postLog, cachedWebfingers, personCache,
|
||||||
debug, projectVersion, None, groupAccount,
|
debug, projectVersion, None, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 8234389)
|
||||||
|
|
||||||
return newFollowJson
|
return newFollowJson
|
||||||
|
|
||||||
|
|
2
inbox.py
2
inbox.py
|
@ -2399,7 +2399,7 @@ def _bounceDM(senderPostId: str, session, httpPrefix: str,
|
||||||
httpPrefix, False, False, federationList,
|
httpPrefix, False, False, federationList,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, __version__, None, groupAccount,
|
personCache, debug, __version__, None, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 7238634)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
2
like.py
2
like.py
|
@ -129,7 +129,7 @@ def _like(recentPostsCache: {},
|
||||||
httpPrefix, True, clientToServer, federationList,
|
httpPrefix, True, clientToServer, federationList,
|
||||||
sendThreads, postLog, cachedWebfingers, personCache,
|
sendThreads, postLog, cachedWebfingers, personCache,
|
||||||
debug, projectVersion, None, groupAccount,
|
debug, projectVersion, None, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 7367374)
|
||||||
|
|
||||||
return newLikeJson
|
return newLikeJson
|
||||||
|
|
||||||
|
|
11
posts.py
11
posts.py
|
@ -2493,7 +2493,8 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
|
||||||
sendThreads: [], postLog: [], cachedWebfingers: {},
|
sendThreads: [], postLog: [], cachedWebfingers: {},
|
||||||
personCache: {}, debug: bool, projectVersion: str,
|
personCache: {}, debug: bool, projectVersion: str,
|
||||||
sharedItemsToken: str, groupAccount: bool,
|
sharedItemsToken: str, groupAccount: bool,
|
||||||
signingPrivateKeyPem: str) -> int:
|
signingPrivateKeyPem: str,
|
||||||
|
sourceId: int) -> int:
|
||||||
"""Sends a signed json object to an inbox/outbox
|
"""Sends a signed json object to an inbox/outbox
|
||||||
"""
|
"""
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -2559,7 +2560,7 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
|
||||||
personCache,
|
personCache,
|
||||||
projectVersion, httpPrefix,
|
projectVersion, httpPrefix,
|
||||||
nickname, domain, postToBox,
|
nickname, domain, postToBox,
|
||||||
30873)
|
sourceId)
|
||||||
|
|
||||||
print("inboxUrl: " + str(inboxUrl))
|
print("inboxUrl: " + str(inboxUrl))
|
||||||
print("toPersonId: " + str(toPersonId))
|
print("toPersonId: " + str(toPersonId))
|
||||||
|
@ -2879,7 +2880,7 @@ def sendToNamedAddresses(session, baseDir: str,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, projectVersion,
|
personCache, debug, projectVersion,
|
||||||
sharedItemsToken, groupAccount,
|
sharedItemsToken, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 34436782)
|
||||||
|
|
||||||
|
|
||||||
def _hasSharedInbox(session, httpPrefix: str, domain: str,
|
def _hasSharedInbox(session, httpPrefix: str, domain: str,
|
||||||
|
@ -3052,7 +3053,7 @@ def sendToFollowers(session, baseDir: str,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, projectVersion,
|
personCache, debug, projectVersion,
|
||||||
sharedItemsToken, groupAccount,
|
sharedItemsToken, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 639342)
|
||||||
else:
|
else:
|
||||||
# send to individual followers without using a shared inbox
|
# send to individual followers without using a shared inbox
|
||||||
for handle in followerHandles:
|
for handle in followerHandles:
|
||||||
|
@ -3081,7 +3082,7 @@ def sendToFollowers(session, baseDir: str,
|
||||||
sendThreads, postLog, cachedWebfingers,
|
sendThreads, postLog, cachedWebfingers,
|
||||||
personCache, debug, projectVersion,
|
personCache, debug, projectVersion,
|
||||||
sharedItemsToken, groupAccount,
|
sharedItemsToken, groupAccount,
|
||||||
signingPrivateKeyPem)
|
signingPrivateKeyPem, 634219)
|
||||||
|
|
||||||
time.sleep(4)
|
time.sleep(4)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue