From 378557ef2584e334392193b63bb2108fac6741fc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Jan 2018 13:15:01 +0100 Subject: Fix comment creation --- server/lib/activitypub/process/process-create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib') 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 = { -- cgit v1.2.3