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

9 lines
417 B
TypeScript

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