Skip to content

Commit 428343e

Browse files
committed
Require a vote for original to show
1 parent a181d52 commit 428343e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/getBranding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async function filterAndSortBranding(videoID: VideoID, returnUserID: boolean, fe
200200
UUID: r.UUID,
201201
userID: returnUserID ? r.userID : undefined
202202
}))
203-
.filter((a) => fetchAll || a.votes >= 0 || a.locked) as ThumbnailResult[];
203+
.filter((a) => fetchAll || a.votes >= 1 || (a.votes >= 0 && !a.original) || a.locked) as ThumbnailResult[];
204204

205205
const videoDuration = dbSegments.filter(s => s.videoDuration !== 0)[0]?.videoDuration ?? null;
206206

0 commit comments

Comments
 (0)