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

11 lines
441 B
TypeScript
Raw Normal View History

2021-07-30 16:51:27 +02:00
import { VideoState } from '@shared/models'
import { AbstractOwnedVideoPublication } from './abstract-owned-video-publication'
export class OwnedPublicationAfterScheduleUpdate extends AbstractOwnedVideoPublication {
isDisabled () {
// Don't notify if video is still blacklisted or waiting for transcoding
return !!this.payload.VideoBlacklist || (this.payload.waitTranscoding && this.payload.state !== VideoState.PUBLISHED)
}
}