]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] minor server-sent events fixes
authorBen Lubar <ben.lubar@gmail.com>
Fri, 24 Jan 2020 19:51:33 +0000 (13:51 -0600)
committerThibaut Girka <thib@sitedethib.com>
Sat, 25 Jan 2020 09:13:56 +0000 (10:13 +0100)
Port front-end changes from 0dfba0884e8885cf242010e0d9da6b328b3560a6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/util/stream.js

index fe965bcb0e90f22e81e4ce66c2520610abb49640..0cb2b228f3c29b8e33fd120d1734a4aeb26fc585 100644 (file)
@@ -92,6 +92,7 @@ export default function getStream(streamingAPIBaseURL, accessToken, stream, { co
     return ws;
   }
 
+  stream = stream.replace(/:/g, '/');
   params.push(`access_token=${accessToken}`);
   const es = new EventSource(`${streamingAPIBaseURL}/api/v1/streaming/${stream}?${params.join('&')}`);