X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fvideo-comments.ts;h=d5c078a29815c6e3647bf1d9c4b5435a3322e533;hb=0374b6b5cd685316f924874b2a3068bb345eb0dd;hp=1a15842cf6e62d7b44ccf07ced0a4024e4ecb218;hpb=b5206dfc455c119b0dcb897bd7144be6ea4d999d;p=github%2FChocobozzz%2FPeerTube.git 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) { throw new Error(`Comment url ${url} host is different from the AP object id ${body.id}`) } - const actor = actorUrl ? await getOrCreateActorAndServerAndModel(actorUrl, 'all') : null + const actor = actorUrl + ? await getOrCreateActorAndServerAndModel(actorUrl, 'all') + : null + const comment = new VideoCommentModel({ url: body.id, text: body.content ? body.content : '',