]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/users/user-notification.model.ts
Implement avatar miniatures (#4639)
[github/Chocobozzz/PeerTube.git] / shared / models / users / user-notification.model.ts
index 8b33e3fbdab30d66a90719ba315a0ea06ff68bc5..a2621fb5bc7c050712baba91688e072f23b11320 100644 (file)
@@ -36,17 +36,23 @@ export const enum UserNotificationType {
 export interface VideoInfo {
   id: number
   uuid: string
+  shortUUID: string
   name: string
 }
 
+export interface AvatarInfo {
+  width: number
+  path: string
+}
+
 export interface ActorInfo {
   id: number
   displayName: string
   name: string
   host: string
-  avatar?: {
-    path: string
-  }
+
+  avatars: AvatarInfo[]
+  avatar: AvatarInfo
 }
 
 export interface UserNotification {
@@ -82,11 +88,7 @@ export interface UserNotification {
     comment?: {
       threadId: number
 
-      video: {
-        id: number
-        uuid: string
-        name: string
-      }
+      video: VideoInfo
     }
 
     account?: ActorInfo