From 78d37b16ab5d5c5a57564d5352c6405490b8b3f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 29 Jul 2021 23:27:54 +0100 Subject: [PATCH] Comments --- posts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/posts.py b/posts.py index 247c4935a..f7eb276d0 100644 --- a/posts.py +++ b/posts.py @@ -267,6 +267,7 @@ def getPersonBox(baseDir: str, session, wfRequest: {}, # get the actor / personUrl if not wfRequest.get('errors'): + # get the actor url from webfinger links personUrl = getUserUrl(wfRequest, sourceId, debug) else: if nickname == 'dev': @@ -277,6 +278,7 @@ def getPersonBox(baseDir: str, session, wfRequest: {}, 'Accept': 'application/ld+json; profile="' + profileStr + '"' } else: + # the final fallback is a mastodon style url personUrl = httpPrefix + '://' + domain + '/users/' + nickname if not personUrl: return None, None, None, None, None, None, None