From d62223ca855f55504fa1e99e685c85dceb057ead Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 20 Sep 2021 18:34:15 +0100 Subject: [PATCH] origin domain --- posts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/posts.py b/posts.py index 163339c70..e1e6ffec2 100644 --- a/posts.py +++ b/posts.py @@ -292,7 +292,7 @@ def parseUserFeed(signingPrivateKeyPem: str, def _getPersonBoxActor(session, baseDir: str, actor: str, profileStr: str, asHeader: {}, debug: bool, projectVersion: str, - httpPrefix: str, domain: str, + httpPrefix: str, originDomain: str, personCache: {}, signingPrivateKeyPem: str, sourceId: int) -> {}: @@ -308,14 +308,14 @@ def _getPersonBoxActor(session, baseDir: str, actor: str, 'Accept': 'application/ld+json; profile="' + profileStr + '"' } personJson = getJson(signingPrivateKeyPem, session, actor, asHeader, None, - debug, projectVersion, httpPrefix, domain) + debug, projectVersion, httpPrefix, originDomain) if personJson: return personJson asHeader = { 'Accept': 'application/ld+json; profile="' + profileStr + '"' } personJson = getJson(signingPrivateKeyPem, session, actor, asHeader, None, - debug, projectVersion, httpPrefix, domain) + debug, projectVersion, httpPrefix, originDomain) if personJson: return personJson print('Unable to get actor for ' + actor + ' ' + str(sourceId)) @@ -2551,7 +2551,7 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str, postToBox = 'outbox' # get the actor inbox/outbox for the To handle - originDomain = toDomain + originDomain = domain (inboxUrl, pubKeyId, pubKey, toPersonId, sharedInboxUrl, avatarUrl, displayName) = getPersonBox(signingPrivateKeyPem, originDomain,