mirror of https://gitlab.com/bashrc2/epicyon
actor inbox
parent
46e8870842
commit
a608499323
10
posts.py
10
posts.py
|
@ -982,9 +982,6 @@ def sendPost(projectVersion: str, \
|
||||||
inboxUrl=capabilityAcquisition
|
inboxUrl=capabilityAcquisition
|
||||||
if not capabilityAcquisition:
|
if not capabilityAcquisition:
|
||||||
return 2
|
return 2
|
||||||
else:
|
|
||||||
if noOfFollowersOnDomain(baseDir,handle,toDomain)>1 and sharedInbox:
|
|
||||||
inboxUrl=sharedInbox.replace('/inbox','/actor/inbox')
|
|
||||||
|
|
||||||
if not inboxUrl:
|
if not inboxUrl:
|
||||||
return 3
|
return 3
|
||||||
|
@ -1216,9 +1213,8 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
|
||||||
print("inboxUrl: "+inboxUrl)
|
print("inboxUrl: "+inboxUrl)
|
||||||
print("toPersonId: "+toPersonId)
|
print("toPersonId: "+toPersonId)
|
||||||
print("sharedInboxUrl: "+sharedInboxUrl)
|
print("sharedInboxUrl: "+sharedInboxUrl)
|
||||||
print("avatarUrl: "+avatarUrl)
|
if inboxUrl.endswith('/actor/inbox'):
|
||||||
if sharedInbox and sharedInboxUrl:
|
inboxUrl=sharedInboxUrl
|
||||||
inboxUrl=sharedInboxUrl.replace('/inbox','/actor/inbox')
|
|
||||||
|
|
||||||
if not inboxUrl:
|
if not inboxUrl:
|
||||||
if debug:
|
if debug:
|
||||||
|
@ -1249,7 +1245,7 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: '+toDomain+' is not in '+inboxUrl)
|
print('DEBUG: '+toDomain+' is not in '+inboxUrl)
|
||||||
return 7
|
return 7
|
||||||
postPath=inboxUrl.split(toDomain)[1]
|
postPath=inboxUrl.split(toDomain,1)[1]
|
||||||
|
|
||||||
# convert json to string so that there are no
|
# convert json to string so that there are no
|
||||||
# subsequent conversions after creating message body digest
|
# subsequent conversions after creating message body digest
|
||||||
|
|
Loading…
Reference in New Issue