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:
parent
e2e22e40f9
commit
ea44f375f5
5 changed files with 118 additions and 51 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue