Better video publishing notification
authorChocobozzz <me@florianbigard.com>
Thu, 5 Sep 2019 08:30:51 +0000 (10:30 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 5 Sep 2019 08:30:51 +0000 (10:30 +0200)
client/src/app/shared/users/user-notifications.component.html
server/models/video/video-blacklist.ts

index 0702d3b5e0f1c7af949437fef8c7cb3f000e48dc..a0f8e6df5170f06f99cbbcd88676760a713c72b8 100644 (file)
@@ -8,7 +8,7 @@
         <img alt="" aria-labelledby="avatar" class="avatar" [src]="notification.video.channel.avatarUrl" />
 
         <div class="message">
-          {{ notification.video.channel.displayName }} published a <a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl">new video</a>
+          {{ notification.video.channel.displayName }} published a new video: <a (click)="markAsRead(notification)" [routerLink]="notification.videoUrl">{{ notification.video.name }}</a>
         </div>
       </ng-container>
 
index 533bfe1add0ba77d6e006f3bbabee7b1d8e5f0f1..694983cb316a0d623a1aaddce51bb1f6f14b18dc 100644 (file)
@@ -5,7 +5,7 @@ import { ScopeNames as VideoChannelScopeNames, SummaryOptions, VideoChannelModel
 import { isVideoBlacklistReasonValid, isVideoBlacklistTypeValid } from '../../helpers/custom-validators/video-blacklist'
 import { VideoBlacklist, VideoBlacklistType } from '../../../shared/models/videos'
 import { CONSTRAINTS_FIELDS } from '../../initializers/constants'
-import { FindOptions, literal } from 'sequelize'
+import { FindOptions } from 'sequelize'
 import { ThumbnailModel } from './thumbnail'
 import * as Bluebird from 'bluebird'
 import { MVideoBlacklist, MVideoBlacklistFormattable } from '@server/typings/models'