Browse Source

Fix a bug where the hashtag could not be specified with the streaming API (#2258)

closed-social-glitch-2
178inaba 7 years ago
committed by Eugen
parent
commit
dd517b9a55
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      streaming/index.js

+ 2
- 2
streaming/index.js View File

@ -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 => {

Loading…
Cancel
Save