From 68aed7b9beb05374c42344e3a3e36db5d4bd12d1 Mon Sep 17 00:00:00 2001 From: teddit Date: Sun, 26 Feb 2023 13:47:10 +0100 Subject: [PATCH] add support for 7 character IDs for short urls (#290) --- routes/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/home.js b/routes/home.js index a8f83d8..6751065 100644 --- a/routes/home.js +++ b/routes/home.js @@ -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;