aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/videos/comment
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/videos/comment')
-rw-r--r--shared/models/videos/comment/index.ts2
-rw-r--r--shared/models/videos/comment/video-comment-create.model.ts3
-rw-r--r--shared/models/videos/comment/video-comment.model.ts45
3 files changed, 0 insertions, 50 deletions
diff --git a/shared/models/videos/comment/index.ts b/shared/models/videos/comment/index.ts
deleted file mode 100644
index 80c6c0724..000000000
--- a/shared/models/videos/comment/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
1export * from './video-comment-create.model'
2export * from './video-comment.model'
diff --git a/shared/models/videos/comment/video-comment-create.model.ts b/shared/models/videos/comment/video-comment-create.model.ts
deleted file mode 100644
index 1f0135405..000000000
--- a/shared/models/videos/comment/video-comment-create.model.ts
+++ /dev/null
@@ -1,3 +0,0 @@
1export interface VideoCommentCreate {
2 text: string
3}
diff --git a/shared/models/videos/comment/video-comment.model.ts b/shared/models/videos/comment/video-comment.model.ts
deleted file mode 100644
index 737cfe098..000000000
--- a/shared/models/videos/comment/video-comment.model.ts
+++ /dev/null
@@ -1,45 +0,0 @@
1import { ResultList } from '../../common'
2import { Account } from '../../actors'
3
4export interface VideoComment {
5 id: number
6 url: string
7 text: string
8 threadId: number
9 inReplyToCommentId: number
10 videoId: number
11 createdAt: Date | string
12 updatedAt: Date | string
13 deletedAt: Date | string
14 isDeleted: boolean
15 totalRepliesFromVideoAuthor: number
16 totalReplies: number
17 account: Account
18}
19
20export interface VideoCommentAdmin {
21 id: number
22 url: string
23 text: string
24
25 threadId: number
26 inReplyToCommentId: number
27
28 createdAt: Date | string
29 updatedAt: Date | string
30
31 account: Account
32
33 video: {
34 id: number
35 uuid: string
36 name: string
37 }
38}
39
40export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number }
41
42export interface VideoCommentThreadTree {
43 comment: VideoComment
44 children: VideoCommentThreadTree[]
45}