From a389a148e8e8576a961079b3fa27cbea54fc3801 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 8 Sep 2022 10:34:05 +0200 Subject: [PATCH] Fix XMPP fetcher logic --- CHANGELOG.md | 2 ++ src/fetcher/xmpp.js | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab8ec49..8060072 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - StackExchange claim verification - Telegram claim verification (thanks [Goldstein](https://codeberg.org/Goldstein)!) +### Fixed +- Fix XMPP fetcher logic ### Removed - Message proof format diff --git a/src/fetcher/xmpp.js b/src/fetcher/xmpp.js index 5c97ec8..7c95aaa 100644 --- a/src/fetcher/xmpp.js +++ b/src/fetcher/xmpp.js @@ -110,9 +110,9 @@ if (jsEnv.isNode) { switch (data.field.toLowerCase()) { case 'desc': case 'note': - vcard = dom.window.document.querySelector('note') + vcard = dom.window.document.querySelector('note text') if (!vcard) { - vcard = dom.window.document.querySelector('note text') + vcard = dom.window.document.querySelector('note') } if (!vcard) { vcard = dom.window.document.querySelector('DESC')