summaryrefslogtreecommitdiff
path: root/src/server/api/streaming.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-04 12:58:35 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-04 12:58:35 +0900
commitdc1d7fa9d75dcf00a8e04b9f5ebe7c6262e0c597 (patch)
tree755ab1431ef3dcd6c7ecba1b638332119119364b /src/server/api/streaming.ts
parent:art: (diff)
downloadsharkey-dc1d7fa9d75dcf00a8e04b9f5ebe7c6262e0c597.tar.gz
sharkey-dc1d7fa9d75dcf00a8e04b9f5ebe7c6262e0c597.tar.bz2
sharkey-dc1d7fa9d75dcf00a8e04b9f5ebe7c6262e0c597.zip
ローカルタイムラインストリームに認証不要で接続できるように
Diffstat (limited to 'src/server/api/streaming.ts')
-rw-r--r--src/server/api/streaming.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts
index c8b2d4e0b9..e6094a40b2 100644
--- a/src/server/api/streaming.ts
+++ b/src/server/api/streaming.ts
@@ -52,6 +52,11 @@ module.exports = (server: http.Server) => {
return;
}
+ if (request.resourceURL.pathname === '/local-timeline') {
+ localTimelineStream(request, connection, ev, user);
+ return;
+ }
+
if (user == null) {
connection.send('authentication-failed');
connection.close();
@@ -60,7 +65,6 @@ module.exports = (server: http.Server) => {
const channel: any =
request.resourceURL.pathname === '/' ? homeStream :
- request.resourceURL.pathname === '/local-timeline' ? localTimelineStream :
request.resourceURL.pathname === '/hybrid-timeline' ? hybridTimelineStream :
request.resourceURL.pathname === '/global-timeline' ? globalTimelineStream :
request.resourceURL.pathname === '/user-list' ? userListStream :