From a162c1f46d460e49a435980ec3c701eb027a9d47 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 23 Aug 2019 17:32:44 +0100 Subject: [PATCH] users --- epicyon.py | 7 +++---- posts.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/epicyon.py b/epicyon.py index 93b15002a..22a2e8d09 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 8597d3334..0d317987a 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: