diff --git a/epicyon.py b/epicyon.py index 93b15002..22a2e8d0 100644 --- a/epicyon.py +++ b/epicyon.py @@ -815,12 +815,11 @@ if args.actor: else: httpPrefix='https' port=443 - session = createSession(domain,port,useTor) + session=createSession(domain,port,useTor) if nickname!='inbox': nickname=domain - wfRequest = webfingerHandle(session,nickname+'@'+domain,httpPrefix,wfCache, \ - domain,__version__) - + wfRequest=webfingerHandle(session,nickname+'@'+domain,httpPrefix,wfCache, \ + domain,__version__) if not wfRequest: print('Unable to webfinger '+nickname+'@'+domain) sys.exit() diff --git a/posts.py b/posts.py index 8597d333..0d317987 100644 --- a/posts.py +++ b/posts.py @@ -984,7 +984,7 @@ def sendPost(projectVersion: str, \ return 2 else: if noOfFollowersOnDomain(baseDir,handle,toDomain)>1 and sharedInbox: - inboxUrl=sharedInbox.replace('/inbox','/'+toDomainOriginal) + inboxUrl=sharedInbox.replace('/inbox','/users/'+toDomainOriginal) if not inboxUrl: return 3 @@ -1214,7 +1214,7 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \ return 2 else: if sharedInbox and sharedInboxUrl: - inboxUrl=sharedInboxUrl.replace('/inbox','/'+toDomainOriginal) + inboxUrl=sharedInboxUrl.replace('/inbox','/users/'+toDomainOriginal) if not inboxUrl: if debug: