1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Send video comment comments to followers/origin

This commit is contained in:
Chocobozzz 2017-12-27 10:39:31 +01:00
parent e2e22e40f9
commit ea44f375f5
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 118 additions and 51 deletions

View 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)