PeerTube/server/lib/notifier/shared/video-publication/owned-publication-after-tra...

10 lines
417 B
TypeScript
Raw Normal View History

2021-07-30 16:51:27 +02: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
}
}