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:
parent
9cb6a80c15
commit
68aed7b9be
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user