1
0
mirror of https://codeberg.org/teddit/teddit synced 2024-12-22 08:19:42 +01:00

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

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;