mirror of https://gitlab.com/bashrc2/epicyon
Check that onion domain has been given
parent
c7f6a49cf9
commit
b44d364449
5
inbox.py
5
inbox.py
|
@ -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"'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue