mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -05:00
add support for 7 character IDs for short urls (#290)
This commit is contained in:
@@ -72,7 +72,7 @@ homeRoute.get([`/:sort?`, '/frontpage'], async (req, res, next) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let is_comment =
|
let is_comment =
|
||||||
sortby.length == 6 &&
|
(sortby.length == 6 || sortby.length == 7) &&
|
||||||
sortby != "rising"
|
sortby != "rising"
|
||||||
? true
|
? true
|
||||||
: false;
|
: false;
|
||||||
|
|||||||
Reference in New Issue
Block a user