AbuseStateChangeForReporter,
AutoFollowForInstance,
CommentMention,
+ StudioEditionFinishedForOwner,
FollowForInstance,
FollowForUser,
ImportFinishedForOwner,
abuseStateChange: [ AbuseStateChangeForReporter ],
newAbuseMessage: [ NewAbuseMessageForReporter, NewAbuseMessageForModerators ],
newPeertubeVersion: [ NewPeerTubeVersionForAdmins ],
- newPluginVersion: [ NewPluginVersionForAdmins ]
+ newPluginVersion: [ NewPluginVersionForAdmins ],
+ videoStudioEditionFinished: [ StudioEditionFinishedForOwner ]
}
private static instance: Notifier
.catch(err => logger.error('Cannot notify on new plugin version %s.', plugin.name, { err }))
}
+ notifyOfFinishedVideoStudioEdition (video: MVideoFullLight) {
+ const models = this.notificationModels.videoStudioEditionFinished
+
+ this.sendNotifications(models, video)
+ .catch(err => logger.error('Cannot notify on finished studio edition %s.', video.url, { err }))
+ }
+
private async notify <T> (object: AbstractNotification<T>) {
await object.prepare()