X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Fvideos.ts;h=a16828fda22aa5fa6845bca7ce5b765a68869e81;hb=90d4bb8125e80c8060416d4d135ddeaf0a622ede;hp=7ec8ca193ad38f0b79e9ea89b8b7f5713eb7022f;hpb=3cd0734fd9b0ff21aaef02317a874e8f1c06e027;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index 7ec8ca193..a16828fda 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts @@ -228,12 +228,7 @@ async function getOrCreateAccountAndVideoAndChannel (videoObject: VideoTorrentOb const channelActor = await getOrCreateVideoChannel(videoObject) - const options = { - arguments: [ videoObject, channelActor ], - errorMessage: 'Cannot insert the remote video with many retries.' - } - - const video = await retryTransactionWrapper(getOrCreateVideo, options) + const video = await retryTransactionWrapper(getOrCreateVideo, videoObject, channelActor) // Process outside the transaction because we could fetch remote data logger.info('Adding likes of video %s.', video.uuid)