aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/notifier/shared/video-publication/owned-publication-after-auto-unblacklist.ts
blob: 27d89a5c76a52dbff42292bdc97b6a75856c5620 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { VideoState } from '@shared/models'
import { AbstractOwnedVideoPublication } from './abstract-owned-video-publication'

export class OwnedPublicationAfterAutoUnblacklist extends AbstractOwnedVideoPublication {

  isDisabled () {
    // Don't notify if video is still waiting for transcoding or scheduled update
    return !!this.payload.ScheduleVideoUpdate || (this.payload.waitTranscoding && this.payload.state !== VideoState.PUBLISHED)
  }
}