aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/videos/updater.ts3
1 files changed, 0 insertions, 3 deletions
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'
4import { Notifier } from '@server/lib/notifier' 4import { Notifier } from '@server/lib/notifier'
5import { PeerTubeSocket } from '@server/lib/peertube-socket' 5import { PeerTubeSocket } from '@server/lib/peertube-socket'
6import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' 6import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist'
7import { VideoCaptionModel } from '@server/models/video/video-caption'
8import { VideoLiveModel } from '@server/models/video/video-live' 7import { VideoLiveModel } from '@server/models/video/video-live'
9import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' 8import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models'
10import { VideoObject, VideoPrivacy } from '@shared/models' 9import { VideoObject, VideoPrivacy } from '@shared/models'
@@ -136,8 +135,6 @@ export class APVideoUpdater extends APVideoAbstractBuilder {
136 } 135 }
137 136
138 private async setCaptions (videoUpdated: MVideoFullLight, t: Transaction) { 137 private async setCaptions (videoUpdated: MVideoFullLight, t: Transaction) {
139 await VideoCaptionModel.deleteAllCaptionsOfRemoteVideo(videoUpdated.id, t)
140
141 await this.insertOrReplaceCaptions(videoUpdated, t) 138 await this.insertOrReplaceCaptions(videoUpdated, t)
142 } 139 }
143 140