diff options
author | 178inaba <magic.brain.evolution.7.0@gmail.com> | 2017-04-21 23:45:14 +0900 |
---|---|---|
committer | Eugen <eugen@zeonfederated.com> | 2017-04-21 16:45:14 +0200 |
commit | dd517b9a552ff82180901e58e14e2206a7c6f478 (patch) | |
tree | ced7be57c33c590848b252c173c1d1f270c27fa3 /streaming | |
parent | b3329c362ee79ca5a9f693eb4c67657fbdd08e08 (diff) |
Fix a bug where the hashtag could not be specified with the streaming API (#2258)
Diffstat (limited to 'streaming')
-rw-r--r-- | streaming/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streaming/index.js b/streaming/index.js index 5e25085c2..8395c9cf8 100644 --- a/streaming/index.js +++ b/streaming/index.js @@ -285,11 +285,11 @@ if (cluster.isMaster) { }) app.get('/api/v1/streaming/hashtag', (req, res) => { - streamFrom(`timeline:hashtag:${req.params.tag}`, req, streamToHttp(req, res), streamHttpEnd(req), true) + streamFrom(`timeline:hashtag:${req.query.tag}`, req, streamToHttp(req, res), streamHttpEnd(req), true) }) app.get('/api/v1/streaming/hashtag/local', (req, res) => { - streamFrom(`timeline:hashtag:${req.params.tag}:local`, req, streamToHttp(req, res), streamHttpEnd(req), true) + streamFrom(`timeline:hashtag:${req.query.tag}:local`, req, streamToHttp(req, res), streamHttpEnd(req), true) }) wss.on('connection', ws => { |