UserRight,
VideoInfo
} from '@shared/models'
+import { Video } from '../video'
export class UserNotification implements UserNotificationServer {
id: number
comment?: {
threadId: number
- video: {
- id: number
- uuid: string
- name: string
- }
+ video: VideoInfo
}
account?: ActorInfo
}
private buildVideoUrl (video: { uuid: string }) {
- return '/videos/watch/' + video.uuid
+ return Video.buildWatchUrl(video)
}
private buildAccountUrl (account: { name: string, host: string }) {