1
0
Fork 0
peertube/server/lib/notifier/shared/video-publication/owned-publication-after-schedule-update.ts
2021-08-02 10:39:51 +02:00

10 lines
441 B
TypeScript

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)
}
}