fix short comment URLs #114

This commit is contained in:
juzz 2021-01-19 21:21:13 +11:00
parent d4e009ea28
commit 833d3b32cd
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ module.exports = (app, redis, fetch, RedditAPI) => {
})
})
app.get('/r/:subreddit/comments/:id/:snippet/:comment_id?', (req, res, next) => {
app.get('/r/:subreddit/comments/:id/:snippet?/:comment_id?', (req, res, next) => {
let subreddit = req.params.subreddit
let id = req.params.id
let snippet = encodeURIComponent(req.params.snippet)