aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/comment.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/videos/comment.ts')
-rw-r--r--server/controllers/api/videos/comment.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/videos/comment.ts b/server/controllers/api/videos/comment.ts
index 81c9e7d16..ac64f0154 100644
--- a/server/controllers/api/videos/comment.ts
+++ b/server/controllers/api/videos/comment.ts
@@ -78,9 +78,9 @@ 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 inReplyToComment: null, 81 inReplyToCommentId: null,
82 video: res.locals.video, 82 video: res.locals.video,
83 actorId: res.locals.oauth.token.User.Account.Actor.id 83 accountId: res.locals.oauth.token.User.Account.id
84 }, t) 84 }, t)
85 }) 85 })
86} 86}
@@ -106,9 +106,9 @@ 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 inReplyToComment: res.locals.videoComment.id, 109 inReplyToCommentId: res.locals.videoComment.id,
110 video: res.locals.video, 110 video: res.locals.video,
111 actorId: res.locals.oauth.token.User.Account.Actor.id 111 accountId: res.locals.oauth.token.User.Account.id
112 }, t) 112 }, t)
113 }) 113 })
114} 114}