diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/activitypub/videos/get.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/lib/activitypub/videos/get.ts b/server/lib/activitypub/videos/get.ts index 5d1f92bba..f0982bd98 100644 --- a/server/lib/activitypub/videos/get.ts +++ b/server/lib/activitypub/videos/get.ts | |||
@@ -61,6 +61,8 @@ async function getOrCreateAPVideo ( | |||
61 | const { videoObject } = await fetchRemoteVideo(videoUrl) | 61 | const { videoObject } = await fetchRemoteVideo(videoUrl) |
62 | if (!videoObject) throw new Error('Cannot fetch remote video with url: ' + videoUrl) | 62 | if (!videoObject) throw new Error('Cannot fetch remote video with url: ' + videoUrl) |
63 | 63 | ||
64 | if (videoObject.id !== videoUrl) return getOrCreateAPVideo({ ...options, fetchType: 'all', videoObject }) | ||
65 | |||
64 | try { | 66 | try { |
65 | const creator = new APVideoCreator(videoObject) | 67 | const creator = new APVideoCreator(videoObject) |
66 | const { autoBlacklisted, videoCreated } = await retryTransactionWrapper(creator.create.bind(creator), syncParam.thumbnail) | 68 | const { autoBlacklisted, videoCreated } = await retryTransactionWrapper(creator.create.bind(creator), syncParam.thumbnail) |