fix parse() shse

This commit is contained in:
Andre Staltz 2023-06-22 14:17:21 +03:00
parent 29c8eb3d1f
commit 74e1b4c356
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ function parseJoinCommand(pieces, uri) {
pieces.shift()
pieces.shift()
pieces.shift()
const shse = `shse:${pubkey}.${token}`
const shse = `shse:${pubkey}:${token}`
const address = `net:${host}:${port}~${shse}` // TODO: add ws address here
return { type: 'join', address }
}

View File

@ -75,6 +75,7 @@ test('create()', async (t) => {
})
const uri = await p(stack.invite.create)({
type: "follow",
_hubMsAddr: 'net:example.com:8008~shse:HUB_PUBKEY',
id: 'MOCK_ID',
})