X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fusers%2Fuser-notification.model.ts;h=7d0eb5ea28703d56e93ee022cd1af44e942ee0df;hb=7ccddd7b5250bd25a917a6e77e58b87b9484a2a4;hp=5d0dc19ae829d0d9d9572df202f0f3a3e7795f70;hpb=344d8be566a1e857f8622e850973817eac768b3e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/users/user-notification.model.ts b/client/src/app/shared/users/user-notification.model.ts index 5d0dc19ae..7d0eb5ea2 100644 --- a/client/src/app/shared/users/user-notification.model.ts +++ b/client/src/app/shared/users/user-notification.model.ts @@ -54,6 +54,7 @@ export class UserNotification implements UserNotificationServer { videoUrl?: string commentUrl?: any[] videoAbuseUrl?: string + videoAutoBlacklistUrl?: string accountUrl?: string videoImportIdentifier?: string videoImportUrl?: string @@ -107,6 +108,11 @@ export class UserNotification implements UserNotificationServer { this.videoUrl = this.buildVideoUrl(this.videoAbuse.video) break + case UserNotificationType.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS: + this.videoAutoBlacklistUrl = '/admin/moderation/video-auto-blacklist/list' + this.videoUrl = this.buildVideoUrl(this.video) + break + case UserNotificationType.BLACKLIST_ON_MY_VIDEO: this.videoUrl = this.buildVideoUrl(this.videoBlacklist.video) break @@ -118,7 +124,8 @@ export class UserNotification implements UserNotificationServer { case UserNotificationType.MY_VIDEO_IMPORT_SUCCESS: this.videoImportUrl = this.buildVideoImportUrl() this.videoImportIdentifier = this.buildVideoImportIdentifier(this.videoImport) - this.videoUrl = this.buildVideoUrl(this.videoImport.video) + + if (this.videoImport.video) this.videoUrl = this.buildVideoUrl(this.videoImport.video) break case UserNotificationType.MY_VIDEO_IMPORT_ERROR: