diff --git a/src/create.ts b/src/create.ts index 8a6cb0b..30b0153 100644 --- a/src/create.ts +++ b/src/create.ts @@ -43,7 +43,7 @@ ${ns.rdf('seeAlso')} <${chatThing.value}> . function determineChatContainer (invitee, podRoot) { // Create chat // See https://gitter.im/solid/chat-app?at=5f3c800f855be416a23ae74a - const chatContainerStr = new URL(`IndividualChats/${new URL(invitee.value).host}/`, podRoot.value).toString() + const chatContainerStr = new URL(`IndividualChats/${new URL(invitee.value).hostname}/`, podRoot.value).toString() return new NamedNode(chatContainerStr) }