Check that onion domain has been given

merge-requests/6/head
Bob Mottram 2020-03-02 13:35:24 +00:00
parent c7f6a49cf9
commit b44d364449
1 changed files with 3 additions and 2 deletions

View File

@ -190,8 +190,9 @@ def getPersonPubKey(baseDir: str,session,personUrl: str, \
if debug: if debug:
print('DEBUG: Obtaining public key for '+personUrl) print('DEBUG: Obtaining public key for '+personUrl)
personDomain=domain personDomain=domain
if '.onion/' in personUrl: if onionDomain:
personDomain=onionDomain if '.onion/' in personUrl:
personDomain=onionDomain
asHeader = { asHeader = {
'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"' 'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'
} }