From: 178inaba Date: Fri, 21 Apr 2017 14:45:14 +0000 (+0900) Subject: Fix a bug where the hashtag could not be specified with the streaming API (#2258) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=dd517b9a552ff82180901e58e14e2206a7c6f478;p=mastodon.git Fix a bug where the hashtag could not be specified with the streaming API (#2258) --- 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 => {