Fix shadow hidden requiring type 1

This commit is contained in:
Ajay 2023-01-29 13:15:05 -05:00
parent cb7492628c
commit f8f02d86d5
2 changed files with 3 additions and 2 deletions

View file

@ -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;
}

View file

@ -52,7 +52,8 @@ export interface Segment {
export enum Visibility {
VISIBLE = 0,
HIDDEN = 1
HIDDEN = 1,
MORE_HIDDEN = 2
}
export interface DBSegment {