]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/process/process-create.ts
Fix comment creation
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / process / process-create.ts
index 32be37e2de534e617c889418cb9d48c8dcd9f71d..e65b257c0cb13bd3dd575ef0caa4c2e0bb13dfcb 100644 (file)
@@ -283,7 +283,7 @@ function createVideoComment (byActor: ActorModel, activity: ActivityCreate) {
       const inReplyToComment = await VideoCommentModel.loadByUrl(comment.inReplyTo, t)
       if (!inReplyToComment) throw new Error('Unknown replied comment ' + comment.inReplyTo)
 
-      video = await VideoModel.load(inReplyToComment.videoId)
+      video = await VideoModel.loadAndPopulateAccount(inReplyToComment.videoId)
 
       const originCommentId = inReplyToComment.originCommentId || inReplyToComment.id
       objectToCreate = {