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:
print('DEBUG: Obtaining public key for '+personUrl)
personDomain=domain
if '.onion/' in personUrl:
personDomain=onionDomain
if onionDomain:
if '.onion/' in personUrl:
personDomain=onionDomain
asHeader = {
'Accept': 'application/activity+json; profile="https://www.w3.org/ns/activitystreams"'
}