]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/comment.ts
Send video comment comments to followers/origin
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / comment.ts
index ac64f0154598dc10873c558c2c58196ff42a2ed8..e9dbb6d1b6166bb4dacbefdce62fde4ba6f4f96d 100644 (file)
@@ -78,7 +78,7 @@ function addVideoCommentThread (req: express.Request, res: express.Response) {
   return sequelizeTypescript.transaction(async t => {
     return createVideoComment({
       text: videoCommentInfo.text,
-      inReplyToCommentId: null,
+      inReplyToComment: null,
       video: res.locals.video,
       accountId: res.locals.oauth.token.User.Account.id
     }, t)
@@ -106,7 +106,7 @@ function addVideoCommentReply (req: express.Request, res: express.Response, next
   return sequelizeTypescript.transaction(async t => {
     return createVideoComment({
       text: videoCommentInfo.text,
-      inReplyToCommentId: res.locals.videoComment.id,
+      inReplyToComment: res.locals.videoComment,
       video: res.locals.video,
       accountId: res.locals.oauth.token.User.Account.id
     }, t)