Webfingering instance actor

merge-requests/30/head
Bob Mottram 2021-08-31 20:04:29 +01:00
parent ded0ec1ea6
commit cd6f2fdbbb
1 changed files with 5 additions and 0 deletions

View File

@ -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)