Support another vCard syntax

This commit is contained in:
Yarmo Mackenbach 2022-08-04 10:32:15 +02:00
parent a630693b08
commit d61d0873bf
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 8 additions and 1 deletions

View file

@ -5,10 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.15.6] - 2022-03-27
### Changed
- Gitlab claims now use HTTP fetcher (thank [hosaka](https://codeberg.org/hosaka)!)
### Removed
- Obsolete Gitlab proof fetcher
### Fixed
- Support another XMPP vCard syntax
## [0.15.6] - 2022-03-27
### Added

View file

@ -110,7 +110,10 @@ if (jsEnv.isNode) {
switch (data.field.toLowerCase()) {
case 'desc':
case 'note':
vcard = dom.window.document.querySelector('note')
if (!vcard) {
vcard = dom.window.document.querySelector('note text')
}
if (!vcard) {
vcard = dom.window.document.querySelector('DESC')
}