From 3bf910a9d43736493f61fb96a084d340ac27e75b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Jul 2021 14:02:00 +0100 Subject: [PATCH] Remove prefix from webfinger aliases --- webfinger.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webfinger.py b/webfinger.py index 2710acb7f..d51869dbb 100644 --- a/webfinger.py +++ b/webfinger.py @@ -290,6 +290,9 @@ def _webfingerUpdateFromProfile(wfJson: {}, actorJson: {}) -> bool: continue newValue = propertyValue['value'].strip() + if '://' in newValue: + newValue = newValue.split('://')[1] + aliasIndex = 0 found = False for alias in wfJson['aliases']: