aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/video-comments.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub/video-comments.ts')
-rw-r--r--server/lib/activitypub/video-comments.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/lib/activitypub/video-comments.ts b/server/lib/activitypub/video-comments.ts
index 1a15842cf..d5c078a29 100644
--- a/server/lib/activitypub/video-comments.ts
+++ b/server/lib/activitypub/video-comments.ts
@@ -141,7 +141,10 @@ async function resolveParentComment (params: ResolveThreadParams) {
141 throw new Error(`Comment url ${url} host is different from the AP object id ${body.id}`) 141 throw new Error(`Comment url ${url} host is different from the AP object id ${body.id}`)
142 } 142 }
143 143
144 const actor = actorUrl ? await getOrCreateActorAndServerAndModel(actorUrl, 'all') : null 144 const actor = actorUrl
145 ? await getOrCreateActorAndServerAndModel(actorUrl, 'all')
146 : null
147
145 const comment = new VideoCommentModel({ 148 const comment = new VideoCommentModel({
146 url: body.id, 149 url: body.id,
147 text: body.content ? body.content : '', 150 text: body.content ? body.content : '',