add support for 7 character IDs for short urls (#290)

This commit is contained in:
teddit 2023-02-26 13:47:10 +01:00
parent 9cb6a80c15
commit 68aed7b9be
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ homeRoute.get([`/:sort?`, '/frontpage'], async (req, res, next) => {
}
let is_comment =
sortby.length == 6 &&
(sortby.length == 6 || sortby.length == 7) &&
sortby != "rising"
? true
: false;