From cd6f2fdbbb14b9a1d142044c70f450722bb643f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 31 Aug 2021 20:04:29 +0100 Subject: [PATCH] Webfingering instance actor --- webfinger.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webfinger.py b/webfinger.py index cbe948122..bf87c4c6d 100644 --- a/webfinger.py +++ b/webfinger.py @@ -267,6 +267,11 @@ def webfingerLookup(path: str, baseDir: str, if onionDomain in handle: handle = handle.replace(onionDomain, domain) onionify = True + # instance actor + if handle.startswith('actor@'): + handle = handle.replace('actor@', 'inbox@', 1) + elif handle.startswith('Actor@'): + handle = handle.replace('Actor@', 'inbox@', 1) filename = baseDir + '/wfendpoints/' + handle + '.json' if debug: print('DEBUG: WEBFINGER filename ' + filename)