diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-14 11:54:38 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-14 13:35:52 +0200 |
commit | 367994c521c1f2349efd1845fb08562a1f1e0cd6 (patch) | |
tree | 100114fd9627c3b662646f48981281cb4e1d29f8 | |
parent | 72f611ca1549d711f8cbf5dd08a3f1562a32fabb (diff) | |
download | PeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.tar.gz PeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.tar.zst PeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.zip |
Improve captions AP updater
-rw-r--r-- | server/lib/activitypub/videos/updater.ts | 3 |
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' | |||
4 | import { Notifier } from '@server/lib/notifier' | 4 | import { Notifier } from '@server/lib/notifier' |
5 | import { PeerTubeSocket } from '@server/lib/peertube-socket' | 5 | import { PeerTubeSocket } from '@server/lib/peertube-socket' |
6 | import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' | 6 | import { autoBlacklistVideoIfNeeded } from '@server/lib/video-blacklist' |
7 | import { VideoCaptionModel } from '@server/models/video/video-caption' | ||
8 | import { VideoLiveModel } from '@server/models/video/video-live' | 7 | import { VideoLiveModel } from '@server/models/video/video-live' |
9 | import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' | 8 | import { MActor, MChannelAccountLight, MChannelId, MVideoAccountLightBlacklistAllFiles, MVideoFullLight } from '@server/types/models' |
10 | import { VideoObject, VideoPrivacy } from '@shared/models' | 9 | import { 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 | ||