Matrix address in webfinger

main
Bob Mottram 2020-05-04 14:10:27 +00:00
parent e8aeba7b4c
commit fd3236d8af
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,7 @@ def webfingerUpdateFromProfile(wfJson: {}, actorJson: {}) -> bool:
webfingerPropertyName = {
"xmpp": "xmpp",
"matrix": "matrix",
"email": "mailto",
"ssb": "ssb",
"tox": "toxId"
@ -291,6 +292,7 @@ def webfingerUpdateFromProfile(wfJson: {}, actorJson: {}) -> bool:
propertyName = propertyValue['name'].lower()
if not (propertyName.startswith('ssb') or
propertyName.startswith('xmpp') or
propertyName.startswith('matrix') or
propertyName.startswith('email') or
propertyName.startswith('tox')):
continue