diff options
Diffstat (limited to 'server/lib/cache')
-rw-r--r-- | server/lib/cache/videos-preview-cache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/cache/videos-preview-cache.ts b/server/lib/cache/videos-preview-cache.ts index 0fe4d2f78..791ad1cbf 100644 --- a/server/lib/cache/videos-preview-cache.ts +++ b/server/lib/cache/videos-preview-cache.ts | |||
@@ -43,7 +43,7 @@ class VideosPreviewCache { | |||
43 | } | 43 | } |
44 | 44 | ||
45 | private async loadPreviews (key: string) { | 45 | private async loadPreviews (key: string) { |
46 | const video = await db.Video.loadByUUIDAndPopulateAuthorAndPodAndTags(key) | 46 | const video = await db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(key) |
47 | if (!video) return undefined | 47 | if (!video) return undefined |
48 | 48 | ||
49 | if (video.isOwned()) return join(CONFIG.STORAGE.PREVIEWS_DIR, video.getPreviewName()) | 49 | if (video.isOwned()) return join(CONFIG.STORAGE.PREVIEWS_DIR, video.getPreviewName()) |