mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Merge pull request 'Support fediverse verification through posts' (#29) from support-fediverse-posts into main
Reviewed-on: https://codeberg.org/keyoxide/doipjs/pulls/29
This commit is contained in:
commit
a3f14228a5
1 changed files with 13 additions and 0 deletions
|
@ -53,6 +53,11 @@ const processURI = (uri) => {
|
||||||
format: E.ClaimFormat.FINGERPRINT,
|
format: E.ClaimFormat.FINGERPRINT,
|
||||||
relation: E.ClaimRelation.CONTAINS,
|
relation: E.ClaimRelation.CONTAINS,
|
||||||
path: ['attachment', 'value']
|
path: ['attachment', 'value']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
format: E.ClaimFormat.FINGERPRINT,
|
||||||
|
relation: E.ClaimRelation.CONTAINS,
|
||||||
|
path: ['content']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -78,6 +83,10 @@ const tests = [
|
||||||
uri: 'https://domain.org/@alice',
|
uri: 'https://domain.org/@alice',
|
||||||
shouldMatch: true
|
shouldMatch: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
uri: 'https://domain.org/@alice/123456',
|
||||||
|
shouldMatch: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
uri: 'https://domain.org/u/alice/',
|
uri: 'https://domain.org/u/alice/',
|
||||||
shouldMatch: true
|
shouldMatch: true
|
||||||
|
@ -86,6 +95,10 @@ const tests = [
|
||||||
uri: 'https://domain.org/users/alice/',
|
uri: 'https://domain.org/users/alice/',
|
||||||
shouldMatch: true
|
shouldMatch: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
uri: 'https://domain.org/users/alice/123456',
|
||||||
|
shouldMatch: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
uri: 'http://domain.org/alice',
|
uri: 'http://domain.org/alice',
|
||||||
shouldMatch: false
|
shouldMatch: false
|
||||||
|
|
Loading…
Reference in a new issue