From e4d6626d6e4c689b8dc839b1aef76dadb050d53a Mon Sep 17 00:00:00 2001 From: Alecks Gates Date: Thu, 25 May 2023 22:08:30 -0500 Subject: [PATCH] Remove "room." from from podcast:chat server --- server/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main.ts b/server/main.ts index a2c6e5fa..75aff65d 100644 --- a/server/main.ts +++ b/server/main.ts @@ -44,15 +44,15 @@ async function register (options: RegisterServerOptions): Promise { const webserverUrl = options.peertubeHelpers.config.getWebserverUrl() const hostname = (new URL(webserverUrl)).hostname const embedUrl = `${webserverUrl}/plugins/livechat/router/webchat/room/${encodeURIComponent(video.uuid)}` - const xmppHostname = `room.${hostname}` + const xmppRoom = `room.${hostname}` return result.concat([ { name: 'podcast:chat', attributes: { - server: xmppHostname, + server: hostname, protocol: 'xmpp', - space: `${video.uuid}@${xmppHostname}`, + space: `${video.uuid}@${xmppRoom}`, embedUrl: embedUrl } }