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

このコミットが含まれているのは:
teddit 2023-02-26 13:47:10 +01:00
コミット 68aed7b9be
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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;