]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/files-cache/videos-preview-cache.ts
Rename video full loading
[github/Chocobozzz/PeerTube.git] / server / lib / files-cache / videos-preview-cache.ts
index dd3a84aca60a7c8fe5d0dbf7c6a3676bea57d3aa..b7a8d610562bfb2d14e7e9ee9bf4c00d774e28e8 100644 (file)
@@ -30,7 +30,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
 
   // Key is the video UUID
   protected async loadRemoteFile (key: string) {
-    const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(key)
+    const video = await VideoModel.loadFull(key)
     if (!video) return undefined
 
     if (video.isOwned()) throw new Error('Cannot load remote preview of owned video.')