X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fprocess%2Fprocess-create.ts;h=1e6e8956ccc8e349b91946ce95efdbdf8c3fd24a;hb=b2a70e3ca2611a8831b6e490cc25dbf3066562c0;hp=76ed37aae3cf266871c18ddac13c8eab6135e1da;hpb=fba911e2c89708a166636e3a93fcd8fcbc3de7e1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/process/process-create.ts b/server/lib/activitypub/process/process-create.ts index 76ed37aae..1e6e8956c 100644 --- a/server/lib/activitypub/process/process-create.ts +++ b/server/lib/activitypub/process/process-create.ts @@ -109,8 +109,10 @@ async function processCreateVideoComment (activity: ActivityCreate, byActor: MAc let video: MVideoAccountLightBlacklistAllFiles let created: boolean let comment: MCommentOwnerVideo + try { const resolveThreadResult = await resolveThread({ url: commentObject.id, isVideo: false }) + if (!resolveThreadResult) return // Comment not accepted video = resolveThreadResult.video created = resolveThreadResult.commentCreated