diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-19 11:16:23 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-19 11:16:23 +0200 |
commit | 4157cdb13748cb6e8ce7081d062a8778554cc5a7 (patch) | |
tree | 149ee35079c1f81f1294f88aa0122dd5c4d55b22 /server/lib/activitypub/video-comments.ts | |
parent | 96f29c0f6d2e623fb088e88200934c5df8da9924 (diff) | |
download | PeerTube-4157cdb13748cb6e8ce7081d062a8778554cc5a7.tar.gz PeerTube-4157cdb13748cb6e8ce7081d062a8778554cc5a7.tar.zst PeerTube-4157cdb13748cb6e8ce7081d062a8778554cc5a7.zip |
Refractor videos AP functions
Diffstat (limited to 'server/lib/activitypub/video-comments.ts')
-rw-r--r-- | server/lib/activitypub/video-comments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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[] = []) { | |||
94 | try { | 94 | try { |
95 | // Maybe it's a reply to a video? | 95 | // Maybe it's a reply to a video? |
96 | // If yes, it's done: we resolved all the thread | 96 | // If yes, it's done: we resolved all the thread |
97 | const { video } = await getOrCreateVideoAndAccountAndChannel(url) | 97 | const { video } = await getOrCreateVideoAndAccountAndChannel({ videoObject: url }) |
98 | 98 | ||
99 | if (comments.length !== 0) { | 99 | if (comments.length !== 0) { |
100 | const firstReply = comments[ comments.length - 1 ] | 100 | const firstReply = comments[ comments.length - 1 ] |