mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Require a vote for original to show
This commit is contained in:
@@ -200,7 +200,7 @@ async function filterAndSortBranding(videoID: VideoID, returnUserID: boolean, fe
|
|||||||
UUID: r.UUID,
|
UUID: r.UUID,
|
||||||
userID: returnUserID ? r.userID : undefined
|
userID: returnUserID ? r.userID : undefined
|
||||||
}))
|
}))
|
||||||
.filter((a) => fetchAll || a.votes >= 0 || a.locked) as ThumbnailResult[];
|
.filter((a) => fetchAll || a.votes >= 1 || (a.votes >= 0 && !a.original) || a.locked) as ThumbnailResult[];
|
||||||
|
|
||||||
const videoDuration = dbSegments.filter(s => s.videoDuration !== 0)[0]?.videoDuration ?? null;
|
const videoDuration = dbSegments.filter(s => s.videoDuration !== 0)[0]?.videoDuration ?? null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user