From 165ed8a6e034ac9cdebe079fc735e71c3cc21997 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 9 Jul 2024 19:49:37 -0400 Subject: [PATCH] Fix original thumbnail votes being shown because of fetch all --- src/routes/getBranding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/getBranding.ts b/src/routes/getBranding.ts index 39d1850..eb23b34 100644 --- a/src/routes/getBranding.ts +++ b/src/routes/getBranding.ts @@ -200,7 +200,7 @@ async function filterAndSortBranding(videoID: VideoID, returnUserID: boolean, fe UUID: r.UUID, userID: returnUserID ? r.userID : undefined })) - .filter((a) => fetchAll || a.votes >= 1 || (a.votes >= 0 && !a.original) || a.locked) as ThumbnailResult[]; + .filter((a) => (fetchAll && !a.original) || a.votes >= 1 || (a.votes >= 0 && !a.original) || a.locked) as ThumbnailResult[]; const videoDuration = dbSegments.filter(s => s.videoDuration !== 0)[0]?.videoDuration ?? null;