diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-21 13:58:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-21 13:58:35 +0200 |
commit | c63830f15403ac4e750829f27d8bbbdc9a59282c (patch) | |
tree | f35048f1b2249bb3eec916964c084b1cd60f7bf3 /shared/extra-utils/videos/comments-command.ts | |
parent | 4d029ef8ec3d5274eeaa3ee6d808eb7035e7faef (diff) | |
download | PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.gz PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.tar.zst PeerTube-c63830f15403ac4e750829f27d8bbbdc9a59282c.zip |
Rename captions commands
Diffstat (limited to 'shared/extra-utils/videos/comments-command.ts')
-rw-r--r-- | shared/extra-utils/videos/comments-command.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/videos/comments-command.ts b/shared/extra-utils/videos/comments-command.ts index 5034c57ad..f0d163a07 100644 --- a/shared/extra-utils/videos/comments-command.ts +++ b/shared/extra-utils/videos/comments-command.ts | |||
@@ -84,7 +84,7 @@ export class CommentsCommand extends AbstractCommand { | |||
84 | defaultExpectedStatus: HttpStatusCode.OK_200 | 84 | defaultExpectedStatus: HttpStatusCode.OK_200 |
85 | })) | 85 | })) |
86 | 86 | ||
87 | this.lastThreadId = body.comment.id | 87 | this.lastThreadId = body.comment?.id |
88 | this.lastVideoId = videoId | 88 | this.lastVideoId = videoId |
89 | 89 | ||
90 | return body.comment | 90 | return body.comment |
@@ -107,7 +107,7 @@ export class CommentsCommand extends AbstractCommand { | |||
107 | defaultExpectedStatus: HttpStatusCode.OK_200 | 107 | defaultExpectedStatus: HttpStatusCode.OK_200 |
108 | })) | 108 | })) |
109 | 109 | ||
110 | this.lastReplyId = body.comment.id | 110 | this.lastReplyId = body.comment?.id |
111 | 111 | ||
112 | return body.comment | 112 | return body.comment |
113 | } | 113 | } |