mirror of https://gitlab.com/bashrc2/epicyon
Check that webfinger exists
parent
b756203651
commit
6b1991d472
4
posts.py
4
posts.py
|
@ -217,6 +217,10 @@ def getPersonBox(baseDir: str, session, wfRequest: {},
|
||||||
asHeader = {
|
asHeader = {
|
||||||
'Accept': 'application/activity+json; profile="' + profileStr + '"'
|
'Accept': 'application/activity+json; profile="' + profileStr + '"'
|
||||||
}
|
}
|
||||||
|
if not wfRequest:
|
||||||
|
print('No webfinger given')
|
||||||
|
return None, None, None, None, None, None, None
|
||||||
|
|
||||||
if not wfRequest.get('errors'):
|
if not wfRequest.get('errors'):
|
||||||
personUrl = getUserUrl(wfRequest, sourceId)
|
personUrl = getUserUrl(wfRequest, sourceId)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue