aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/lib/notifier/shared/video-publication/owned-publication-after-schedule-update.ts
blob: 2e253b358d4372935b0a25f19a929a58d168526c (plain) (tree)
1
2
3
4
5
6
7
8
9
10









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