diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-27 10:39:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-27 10:39:31 +0100 |
commit | ea44f375f5d3da06ca0aebfe871b9f924a26ec29 (patch) | |
tree | ad2e3a458fdbeb11fae8b2215e0619df1aa6e20c /server/controllers | |
parent | e2e22e40f91018cfaf244e0df9a4a93e4f6d0502 (diff) | |
download | PeerTube-ea44f375f5d3da06ca0aebfe871b9f924a26ec29.tar.gz PeerTube-ea44f375f5d3da06ca0aebfe871b9f924a26ec29.tar.zst PeerTube-ea44f375f5d3da06ca0aebfe871b9f924a26ec29.zip |
Send video comment comments to followers/origin
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/videos/comment.ts | 4 |
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) |