mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 05:27:00 +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
|
//check if shadowHidden
|
||||||
//this means it is hidden to everyone but the original ip that submitted it
|
//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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ export interface Segment {
|
|||||||
|
|
||||||
export enum Visibility {
|
export enum Visibility {
|
||||||
VISIBLE = 0,
|
VISIBLE = 0,
|
||||||
HIDDEN = 1
|
HIDDEN = 1,
|
||||||
|
MORE_HIDDEN = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DBSegment {
|
export interface DBSegment {
|
||||||
|
|||||||
Reference in New Issue
Block a user