mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-09 16:52:13 +01:00
Fix original thumbnail votes being shown because of fetch all
This commit is contained in:
parent
495b8031e3
commit
165ed8a6e0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue