mirror of https://codeberg.org/pzp/pzp-invite.git
fix parse() shse
This commit is contained in:
parent
29c8eb3d1f
commit
74e1b4c356
|
@ -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 }
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue