aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-14 11:54:38 +0200
committerChocobozzz <me@florianbigard.com>2021-06-14 13:35:52 +0200
commit367994c521c1f2349efd1845fb08562a1f1e0cd6 (patch)
tree100114fd9627c3b662646f48981281cb4e1d29f8 /server/lib/activitypub
parent72f611ca1549d711f8cbf5dd08a3f1562a32fabb (diff)
downloadPeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.tar.gz
PeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.tar.zst
PeerTube-367994c521c1f2349efd1845fb08562a1f1e0cd6.zip
Improve captions AP updater
Diffstat (limited to 'server/lib/activitypub')
-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