about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBen Lubar <ben.lubar@gmail.com>2020-01-24 13:51:33 -0600
committerThibaut Girka <thib@sitedethib.com>2020-01-25 10:13:56 +0100
commit05351cbffba260816ddaa5ac3715e3831f0f1706 (patch)
treeba6c8b1e963b166527ec95002fdec712b7b2e6e2
parent61f699c0e907d8525190b115fc619296b4affa98 (diff)
[Glitch] minor server-sent events fixes
Port front-end changes from 0dfba0884e8885cf242010e0d9da6b328b3560a6 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
-rw-r--r--app/javascript/flavours/glitch/util/stream.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/util/stream.js b/app/javascript/flavours/glitch/util/stream.js
index fe965bcb0..0cb2b228f 100644
--- a/app/javascript/flavours/glitch/util/stream.js
+++ b/app/javascript/flavours/glitch/util/stream.js
@@ -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('&')}`);