From 367994c521c1f2349efd1845fb08562a1f1e0cd6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 14 Jun 2021 11:54:38 +0200 Subject: Improve captions AP updater --- server/lib/activitypub/videos/updater.ts | 3 --- 1 file changed, 3 deletions(-) (limited to 'server/lib/activitypub') diff --git a/server/lib/activitypub/videos/updater.ts b/server/lib/activitypub/videos/updater.ts index e17e5fdc2..157569414 100644 --- a/server/lib/activitypub/videos/updater.ts +++ b/server/lib/activitypub/videos/updater.ts @@ -4,7 +4,6 @@ import { logger, loggerTagsFactory, LoggerTagsFn } from '@server/helpers/logger' import { Notifier } from '@server/lib/notifier' import { PeerTubeSocket } from '@server/lib/peertube-socket' import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' -import { VideoCaptionModel } from '@server/models/video/video-caption' import { VideoLiveModel } from '@server/models/video/video-live' import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' import { VideoObject, VideoPrivacy } from '@shared/models' @@ -136,8 +135,6 @@ export class APVideoUpdater extends APVideoAbstractBuilder { } private async setCaptions (videoUpdated: MVideoFullLight, t: Transaction) { - await VideoCaptionModel.deleteAllCaptionsOfRemoteVideo(videoUpdated.id, t) - await this.insertOrReplaceCaptions(videoUpdated, t) } -- cgit v1.2.3