diff options
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/user-notification.model.ts | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/shared/models/users/user-notification.model.ts b/shared/models/users/user-notification.model.ts index f41b6f534..eaeb422df 100644 --- a/shared/models/users/user-notification.model.ts +++ b/shared/models/users/user-notification.model.ts | |||
@@ -22,16 +22,22 @@ export interface VideoInfo { | |||
22 | name: string | 22 | name: string |
23 | } | 23 | } |
24 | 24 | ||
25 | export interface ActorInfo { | ||
26 | id: number | ||
27 | displayName: string | ||
28 | name: string | ||
29 | avatar?: { | ||
30 | path: string | ||
31 | } | ||
32 | } | ||
33 | |||
25 | export interface UserNotification { | 34 | export interface UserNotification { |
26 | id: number | 35 | id: number |
27 | type: UserNotificationType | 36 | type: UserNotificationType |
28 | read: boolean | 37 | read: boolean |
29 | 38 | ||
30 | video?: VideoInfo & { | 39 | video?: VideoInfo & { |
31 | channel: { | 40 | channel: ActorInfo |
32 | id: number | ||
33 | displayName: string | ||
34 | } | ||
35 | } | 41 | } |
36 | 42 | ||
37 | videoImport?: { | 43 | videoImport?: { |
@@ -45,10 +51,7 @@ export interface UserNotification { | |||
45 | comment?: { | 51 | comment?: { |
46 | id: number | 52 | id: number |
47 | threadId: number | 53 | threadId: number |
48 | account: { | 54 | account: ActorInfo |
49 | id: number | ||
50 | displayName: string | ||
51 | } | ||
52 | video: VideoInfo | 55 | video: VideoInfo |
53 | } | 56 | } |
54 | 57 | ||
@@ -62,18 +65,11 @@ export interface UserNotification { | |||
62 | video: VideoInfo | 65 | video: VideoInfo |
63 | } | 66 | } |
64 | 67 | ||
65 | account?: { | 68 | account?: ActorInfo |
66 | id: number | ||
67 | displayName: string | ||
68 | name: string | ||
69 | } | ||
70 | 69 | ||
71 | actorFollow?: { | 70 | actorFollow?: { |
72 | id: number | 71 | id: number |
73 | follower: { | 72 | follower: ActorInfo |
74 | name: string | ||
75 | displayName: string | ||
76 | } | ||
77 | following: { | 73 | following: { |
78 | type: 'account' | 'channel' | 74 | type: 'account' | 'channel' |
79 | name: string | 75 | name: string |