X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fvideo-comments.ts;h=4ca8bf6595796431dd1396dbd46d712f740ddc3e;hb=d9bdd007d7a1368d2a13127ecb5c0a81a18a8c04;hp=ffbd3a64e606f22de754400ebde8019d1f518d64;hpb=83e6519ba4ee752dc3148a16c69effbfccb13e6b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/video-comments.ts b/server/lib/activitypub/video-comments.ts index ffbd3a64e..4ca8bf659 100644 --- a/server/lib/activitypub/video-comments.ts +++ b/server/lib/activitypub/video-comments.ts @@ -94,7 +94,7 @@ async function resolveThread (url: string, comments: VideoCommentModel[] = []) { try { // Maybe it's a reply to a video? // If yes, it's done: we resolved all the thread - const { video } = await getOrCreateVideoAndAccountAndChannel(url) + const { video } = await getOrCreateVideoAndAccountAndChannel({ videoObject: url }) if (comments.length !== 0) { const firstReply = comments[ comments.length - 1 ]