From 9efecfc28e6bbae2bc8a60283149d55e607b52c2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 31 Dec 2020 10:56:22 +0000 Subject: [PATCH] Check webfinger exists --- posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts.py b/posts.py index c98669627..1566540f2 100644 --- a/posts.py +++ b/posts.py @@ -212,6 +212,8 @@ def getPersonBox(baseDir: str, session, wfRequest: {}, nickname: str, domain: str, boxName='inbox', sourceId=0) -> (str, str, str, str, str, str, str, str): + if not wfRequest: + return None, None, None, None, None, None, None profileStr = 'https://www.w3.org/ns/activitystreams' asHeader = { 'Accept': 'application/activity+json; profile="' + profileStr + '"'