From: Chocobozzz Date: Thu, 5 Sep 2019 08:20:03 +0000 (+0200) Subject: Fix old auto blacklist notifications X-Git-Tag: v2.0.0-rc.1~76 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43d35494b5d9774617be3fb186b0f180651b99fa;p=oweals%2Fpeertube.git Fix old auto blacklist notifications --- 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