1
0
Fork 0
peertube/server/lib/notifier/shared/video-publication/owned-publication-after-transcoding.ts

10 lines
417 B
TypeScript
Raw Normal View History

2021-07-30 10:51:27 -04:00
import { AbstractOwnedVideoPublication } from './abstract-owned-video-publication'
export class OwnedPublicationAfterTranscoding extends AbstractOwnedVideoPublication {
isDisabled () {
// Don't notify if didn't wait for transcoding or video is still blacklisted/waiting for scheduled update
return !this.payload.waitTranscoding || !!this.payload.VideoBlacklist || !!this.payload.ScheduleVideoUpdate
}
}