mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-04-18 21:45:06 -04:00
add support for 7 character IDs for short urls (#290)
This commit is contained in:
+1
-1
@@ -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