From 43d35494b5d9774617be3fb186b0f180651b99fa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Sep 2019 10:20:03 +0200 Subject: Fix old auto blacklist notifications --- client/src/app/shared/users/user-notification.model.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src') diff --git a/client/src/app/shared/users/user-notification.model.ts b/client/src/app/shared/users/user-notification.model.ts index b4ac075c5..c3f4bf429 100644 --- a/client/src/app/shared/users/user-notification.model.ts +++ b/client/src/app/shared/users/user-notification.model.ts @@ -113,6 +113,9 @@ export class UserNotification implements UserNotificationServer { case UserNotificationType.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS: this.videoAutoBlacklistUrl = '/admin/moderation/video-auto-blacklist/list' + // Backward compatibility where we did not assign videoBlacklist to this type of notification before + if (!this.videoBlacklist) this.videoBlacklist = { id: null, video: this.video } + this.videoUrl = this.buildVideoUrl(this.videoBlacklist.video) break -- cgit v1.2.3