aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/comment.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/comment.ts b/server/controllers/api/videos/comment.ts
index ac64f0154..e9dbb6d1b 100644
--- a/server/controllers/api/videos/comment.ts
+++ b/server/controllers/api/videos/comment.ts
@@ -78,7 +78,7 @@ function addVideoCommentThread (req: express.Request, res: express.Response) {
78 return sequelizeTypescript.transaction(async t => { 78 return sequelizeTypescript.transaction(async t => {
79 return createVideoComment({ 79 return createVideoComment({
80 text: videoCommentInfo.text, 80 text: videoCommentInfo.text,
81 inReplyToCommentId: null, 81 inReplyToComment: null,
82 video: res.locals.video, 82 video: res.locals.video,
83 accountId: res.locals.oauth.token.User.Account.id 83 accountId: res.locals.oauth.token.User.Account.id
84 }, t) 84 }, t)
@@ -106,7 +106,7 @@ function addVideoCommentReply (req: express.Request, res: express.Response, next
106 return sequelizeTypescript.transaction(async t => { 106 return sequelizeTypescript.transaction(async t => {
107 return createVideoComment({ 107 return createVideoComment({
108 text: videoCommentInfo.text, 108 text: videoCommentInfo.text,
109 inReplyToCommentId: res.locals.videoComment.id, 109 inReplyToComment: res.locals.videoComment,
110 video: res.locals.video, 110 video: res.locals.video,
111 accountId: res.locals.oauth.token.User.Account.id 111 accountId: res.locals.oauth.token.User.Account.id
112 }, t) 112 }, t)