mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Fix shadow hidden requiring type 1
This commit is contained in:
@@ -27,7 +27,7 @@ async function prepareCategorySegments(req: Request, videoID: VideoID, service:
|
||||
|
||||
//check if shadowHidden
|
||||
//this means it is hidden to everyone but the original ip that submitted it
|
||||
if (segment.shadowHidden != Visibility.HIDDEN) {
|
||||
if (segment.shadowHidden === Visibility.VISIBLE) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,8 @@ export interface Segment {
|
||||
|
||||
export enum Visibility {
|
||||
VISIBLE = 0,
|
||||
HIDDEN = 1
|
||||
HIDDEN = 1,
|
||||
MORE_HIDDEN = 2
|
||||
}
|
||||
|
||||
export interface DBSegment {
|
||||
|
||||
Reference in New Issue
Block a user