mirror of https://gitlab.com/bashrc2/epicyon
Number of returned values
parent
4d0cee8dda
commit
002877ac45
8
posts.py
8
posts.py
|
@ -337,7 +337,7 @@ def getPersonBox(signingPrivateKeyPem: str, originDomain: str,
|
||||||
}
|
}
|
||||||
if not wfRequest:
|
if not wfRequest:
|
||||||
print('No webfinger given')
|
print('No webfinger given')
|
||||||
return None, None, None, None, None, None, None
|
return None, None, None, None, None, None, None, None
|
||||||
|
|
||||||
# get the actor / personUrl
|
# get the actor / personUrl
|
||||||
if not wfRequest.get('errors'):
|
if not wfRequest.get('errors'):
|
||||||
|
@ -355,7 +355,7 @@ def getPersonBox(signingPrivateKeyPem: str, originDomain: str,
|
||||||
# the final fallback is a mastodon style url
|
# the final fallback is a mastodon style url
|
||||||
personUrl = localActorUrl(httpPrefix, nickname, domain)
|
personUrl = localActorUrl(httpPrefix, nickname, domain)
|
||||||
if not personUrl:
|
if not personUrl:
|
||||||
return None, None, None, None, None, None, None
|
return None, None, None, None, None, None, None, None
|
||||||
|
|
||||||
# get the actor json from the url
|
# get the actor json from the url
|
||||||
personJson = \
|
personJson = \
|
||||||
|
@ -366,7 +366,7 @@ def getPersonBox(signingPrivateKeyPem: str, originDomain: str,
|
||||||
personCache, signingPrivateKeyPem,
|
personCache, signingPrivateKeyPem,
|
||||||
sourceId)
|
sourceId)
|
||||||
if not personJson:
|
if not personJson:
|
||||||
return None, None, None, None, None, None, None
|
return None, None, None, None, None, None, None, None
|
||||||
|
|
||||||
isGroup = False
|
isGroup = False
|
||||||
if personJson.get('type'):
|
if personJson.get('type'):
|
||||||
|
@ -382,7 +382,7 @@ def getPersonBox(signingPrivateKeyPem: str, originDomain: str,
|
||||||
else:
|
else:
|
||||||
boxJson = personJson[boxName]
|
boxJson = personJson[boxName]
|
||||||
if not boxJson:
|
if not boxJson:
|
||||||
return None, None, None, None, None, None, None
|
return None, None, None, None, None, None, None, None
|
||||||
|
|
||||||
personId = None
|
personId = None
|
||||||
if personJson.get('id'):
|
if personJson.get('id'):
|
||||||
|
|
Loading…
Reference in New Issue