From 0d9cce05123d36003af43654791a3994d0777068 Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 24 Mar 2024 13:42:39 -0400 Subject: [PATCH] Fix wrong comparison with votes filtering --- src/routes/getBranding.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index 387cc33..f6cfac2 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -181,7 +181,7 @@ async function filterAndSortBranding(videoID: VideoID, returnUserID: boolean, fe UUID: r.UUID, userID: returnUserID ? r.userID : undefined })) - .filter((a) => fetchAll || a.votes > 0 || a.locked) + .filter((a) => fetchAll || a.votes >= 0 || a.locked) .sort((a, b) => b.votes - a.votes) .sort((a, b) => +b.locked - +a.locked) as TitleResult[]; @@ -197,7 +197,7 @@ async function filterAndSortBranding(videoID: VideoID, returnUserID: boolean, fe UUID: r.UUID, userID: returnUserID ? r.userID : undefined })) - .filter((a) => fetchAll || a.votes > 0 || a.locked) as ThumbnailResult[]; + .filter((a) => fetchAll || a.votes >= 0 || a.locked) as ThumbnailResult[]; return { titles,