From 643dabff9f058566e109b5ba79e690e076aa8fad Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Wed, 16 Nov 2022 21:27:24 +0100 Subject: [PATCH] Support fediverse verification through posts --- src/claimDefinitions/activitypub.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/claimDefinitions/activitypub.js b/src/claimDefinitions/activitypub.js index e779e07..4d58558 100644 --- a/src/claimDefinitions/activitypub.js +++ b/src/claimDefinitions/activitypub.js @@ -53,6 +53,11 @@ const processURI = (uri) => { format: E.ClaimFormat.FINGERPRINT, relation: E.ClaimRelation.CONTAINS, path: ['attachment', 'value'] + }, + { + format: E.ClaimFormat.FINGERPRINT, + relation: E.ClaimRelation.CONTAINS, + path: ['content'] } ] } @@ -78,6 +83,10 @@ const tests = [ uri: 'https://domain.org/@alice', shouldMatch: true }, + { + uri: 'https://domain.org/@alice/123456', + shouldMatch: true + }, { uri: 'https://domain.org/u/alice/', shouldMatch: true @@ -86,6 +95,10 @@ const tests = [ uri: 'https://domain.org/users/alice/', shouldMatch: true }, + { + uri: 'https://domain.org/users/alice/123456', + shouldMatch: true + }, { uri: 'http://domain.org/alice', shouldMatch: false