X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fprocess%2Fprocess-create.ts;h=e65b257c0cb13bd3dd575ef0caa4c2e0bb13dfcb;hb=378557ef2584e334392193b63bb2108fac6741fc;hp=32be37e2de534e617c889418cb9d48c8dcd9f71d;hpb=9273b2d8ff479aef0e29c46deba2f05ab7075517;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 32be37e2d..e65b257c0 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts @@ -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 = {