ActivityPub-federated video streaming platform using P2P directly in your web browser
Remove redundant thumbnail save
Chocobozzz466acae1e511
diff --git a/server/core/lib/activitypub/videos/updater.ts b/server/core/lib/activitypub/videos/updater.tsindex a004da67dd..a8d1558fb7 100644--- a/server/core/lib/activitypub/videos/updater.ts+++ b/server/core/lib/activitypub/videos/updater.ts@@ -49,15 +49,11 @@ export class APVideoUpdater extends APVideoAbstractBuilder {try {const channelActor = await this.getOrCreateVideoChannelFromVideoObject()- const thumbnailModel = await this.setThumbnail(this.video)-this.checkChannelUpdateOrThrow(channelActor)const oldState = this.video.stateconst videoUpdated = await this.updateVideo(channelActor.VideoChannel, undefined, overrideTo)- if (thumbnailModel) await videoUpdated.addAndSaveThumbnail(thumbnailModel)-await runInReadCommittedTransaction(async t => {await this.setWebVideoFiles(videoUpdated, t)await this.setStreamingPlaylists(videoUpdated, t)