diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-09 14:15:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 12edc1495a36b2199f1bf1ba37f50c7b694be382 (patch) | |
tree | 3abfe2e5b54076de73fbfa25386d0313fc3b7242 /shared/models/videos/comment | |
parent | a54618880c394ad7571f3f3222dc96ec2dd10d9a (diff) | |
download | PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.tar.gz PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.tar.zst PeerTube-12edc1495a36b2199f1bf1ba37f50c7b694be382.zip |
Introduce comments command
Diffstat (limited to 'shared/models/videos/comment')
-rw-r--r-- | shared/models/videos/comment/index.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/comment/video-comment-create.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/comment/video-comment.model.ts | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/shared/models/videos/comment/index.ts b/shared/models/videos/comment/index.ts index 7b9261a36..80c6c0724 100644 --- a/shared/models/videos/comment/index.ts +++ b/shared/models/videos/comment/index.ts | |||
@@ -1 +1,2 @@ | |||
1 | export * from './video-comment-create.model' | ||
1 | export * from './video-comment.model' | 2 | export * 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 new file mode 100644 index 000000000..1f0135405 --- /dev/null +++ b/shared/models/videos/comment/video-comment-create.model.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export 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 index 79c0e4c0a..5a96f9d4a 100644 --- a/shared/models/videos/comment/video-comment.model.ts +++ b/shared/models/videos/comment/video-comment.model.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { ResultList } from '@shared/models/common' | ||
1 | import { Account } from '../../actors' | 2 | import { Account } from '../../actors' |
2 | 3 | ||
3 | export interface VideoComment { | 4 | export interface VideoComment { |
@@ -36,11 +37,9 @@ export interface VideoCommentAdmin { | |||
36 | } | 37 | } |
37 | } | 38 | } |
38 | 39 | ||
40 | export type VideoCommentThreads = ResultList<VideoComment> & { totalNotDeletedComments: number } | ||
41 | |||
39 | export interface VideoCommentThreadTree { | 42 | export interface VideoCommentThreadTree { |
40 | comment: VideoComment | 43 | comment: VideoComment |
41 | children: VideoCommentThreadTree[] | 44 | children: VideoCommentThreadTree[] |
42 | } | 45 | } |
43 | |||
44 | export interface VideoCommentCreate { | ||
45 | text: string | ||
46 | } | ||