From 061c834f8458207542cc1acb2326bb34afc7ae91 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 24 Oct 2020 23:35:54 +0200 Subject: [PATCH] Change data structure --- src/serviceproviders/dns.js | 2 +- src/serviceproviders/hackernews.js | 2 +- src/serviceproviders/twitter.js | 2 +- src/serviceproviders/xmpp.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/serviceproviders/dns.js b/src/serviceproviders/dns.js index bf564c5..822733d 100644 --- a/src/serviceproviders/dns.js +++ b/src/serviceproviders/dns.js @@ -37,7 +37,7 @@ const processURI = (uri, opts) => { claim: { fingerprint: null, format: 'uri', - path: 'Answer.data', + path: ['Answer', 'data'], relation: 'equals' }, qr: null diff --git a/src/serviceproviders/hackernews.js b/src/serviceproviders/hackernews.js index 63c493e..36f46f0 100644 --- a/src/serviceproviders/hackernews.js +++ b/src/serviceproviders/hackernews.js @@ -37,7 +37,7 @@ const processURI = (uri, opts) => { claim: { fingerprint: null, format: 'uri', - path: 'about', + path: ['about'], relation: 'contains' }, qr: null diff --git a/src/serviceproviders/twitter.js b/src/serviceproviders/twitter.js index 670b65c..3cc5082 100644 --- a/src/serviceproviders/twitter.js +++ b/src/serviceproviders/twitter.js @@ -37,7 +37,7 @@ const processURI = (uri, opts) => { claim: { fingerprint: null, format: 'message', - path: null, + path: [], relation: 'contains' }, qr: null diff --git a/src/serviceproviders/xmpp.js b/src/serviceproviders/xmpp.js index 3d7b215..e809fd1 100644 --- a/src/serviceproviders/xmpp.js +++ b/src/serviceproviders/xmpp.js @@ -39,7 +39,7 @@ const processURI = (uri, opts) => { claim: { fingerprint: null, format: 'message', - path: null, + path: [], relation: 'contains' }, qr: null