summaryrefslogtreecommitdiff
path: root/src/server/api/streaming.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-17 09:00:20 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-17 09:00:20 +0900
commit109738ccb9ef8c203685e6f4bc31986ac2a17046 (patch)
treef91e8bb9c9ec445a10b018a934c88ebbdfeb8db1 /src/server/api/streaming.ts
parent8.44.1 (diff)
downloadsharkey-109738ccb9ef8c203685e6f4bc31986ac2a17046.tar.gz
sharkey-109738ccb9ef8c203685e6f4bc31986ac2a17046.tar.bz2
sharkey-109738ccb9ef8c203685e6f4bc31986ac2a17046.zip
ハッシュタグタイムラインを実装
Diffstat (limited to 'src/server/api/streaming.ts')
-rw-r--r--src/server/api/streaming.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/api/streaming.ts b/src/server/api/streaming.ts
index e6094a40b2..873719d031 100644
--- a/src/server/api/streaming.ts
+++ b/src/server/api/streaming.ts
@@ -14,6 +14,7 @@ import reversiGameStream from './stream/games/reversi-game';
import reversiStream from './stream/games/reversi';
import serverStatsStream from './stream/server-stats';
import notesStatsStream from './stream/notes-stats';
+import hashtagStream from './stream/hashtag';
import { ParsedUrlQuery } from 'querystring';
import authenticate from './authenticate';
@@ -57,6 +58,11 @@ module.exports = (server: http.Server) => {
return;
}
+ if (request.resourceURL.pathname === '/hashtag') {
+ hashtagStream(request, connection, ev, user);
+ return;
+ }
+
if (user == null) {
connection.send('authentication-failed');
connection.close();