[mastodon-client] Fix streaming API url

This fixes a regression where some clients were unable to connect to the streaming API.
The /mastodon suffix was previously removed in other parts of the code as too many clients didn't respect it, however it was not removed here, leaving clients that do respect it are unable to connect.
This commit is contained in:
Laura Hausmann 2023-10-14 13:29:16 +02:00
parent 2192d5c668
commit c46ea29ba3
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -48,7 +48,7 @@ export class MiscHelpers {
email: meta.maintainerEmail || "",
version: `4.1.0 (compatible; Iceshrimp ${config.version})`,
urls: {
streaming_api: `${config.url.replace(/^http(?=s?:\/\/)/, "ws")}/mastodon`,
streaming_api: `${config.url.replace(/^http(?=s?:\/\/)/, "ws")}`,
},
stats: awaitAll({
user_count: userCount,