From 22f7f57b745d8ad4c563835a0d1f21e627d356e3 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Fri, 18 Dec 2020 17:08:35 +0000 Subject: [PATCH] More debug --- posts.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 8acd5304..96f8ded4 100644 --- a/posts.py +++ b/posts.py @@ -142,7 +142,12 @@ def cleanHtml(rawHtml: str) -> str: def getUserUrl(wfRequest: {}) -> str: + """Gets the actor url from a webfinger request + """ + print('getUserUrl: ' + str(wfRequest)) if not wfRequest.get('links'): + print('getUserUrl webfinger activity+json contains no links ' + + str(wfRequest)) return None for link in wfRequest['links']: if not (link.get('type') and link.get('href')): @@ -153,7 +158,7 @@ def getUserUrl(wfRequest: {}) -> str: '/accounts/' in link['href'] or '/profile/' in link['href'] or '/channel/' in link['href']): - print('Webfinger activity+json ' + + print('getUserUrl webfinger activity+json ' + 'contains single user instance actor ' + str(link)) return link['href']