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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
## [0.15.6] - 2022-03-27
### Changed ### Changed
- Gitlab claims now use HTTP fetcher (thank [hosaka](https://codeberg.org/hosaka)!) - Gitlab claims now use HTTP fetcher (thank [hosaka](https://codeberg.org/hosaka)!)
### Removed ### Removed
- Obsolete Gitlab proof fetcher - Obsolete Gitlab proof fetcher
### Fixed
- Support another XMPP vCard syntax
## [0.15.6] - 2022-03-27 ## [0.15.6] - 2022-03-27
### Added ### Added

View file

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