mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 14:59:26 +01:00
fix short comment URLs #114
This commit is contained in:
parent
d4e009ea28
commit
833d3b32cd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user