mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Fix shadow hidden requiring type 1
This commit is contained in:
parent
cb7492628c
commit
f8f02d86d5
2 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue