Remove prefix from webfinger aliases

main
Bob Mottram 2021-07-06 14:02:00 +01:00
parent fc3112b878
commit 3bf910a9d4
1 changed files with 3 additions and 0 deletions

View File

@ -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']: