aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-08 13:15:01 +0100
committerChocobozzz <me@florianbigard.com>2018-01-08 13:15:01 +0100
commit378557ef2584e334392193b63bb2108fac6741fc (patch)
tree3d9792af5b11980bbf47fd964fef61e4237a8461 /server/lib/activitypub
parent9273b2d8ff479aef0e29c46deba2f05ab7075517 (diff)
downloadPeerTube-378557ef2584e334392193b63bb2108fac6741fc.tar.gz
PeerTube-378557ef2584e334392193b63bb2108fac6741fc.tar.zst
PeerTube-378557ef2584e334392193b63bb2108fac6741fc.zip
Fix comment creation
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r--server/lib/activitypub/process/process-create.ts2
1 files changed, 1 insertions, 1 deletions
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) {
283 const inReplyToComment = await VideoCommentModel.loadByUrl(comment.inReplyTo, t) 283 const inReplyToComment = await VideoCommentModel.loadByUrl(comment.inReplyTo, t)
284 if (!inReplyToComment) throw new Error('Unknown replied comment ' + comment.inReplyTo) 284 if (!inReplyToComment) throw new Error('Unknown replied comment ' + comment.inReplyTo)
285 285
286 video = await VideoModel.load(inReplyToComment.videoId) 286 video = await VideoModel.loadAndPopulateAccount(inReplyToComment.videoId)
287 287
288 const originCommentId = inReplyToComment.originCommentId || inReplyToComment.id 288 const originCommentId = inReplyToComment.originCommentId || inReplyToComment.id
289 objectToCreate = { 289 objectToCreate = {