diff options
Diffstat (limited to 'server/lib/cache/videos-preview-cache.ts')
-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 28908b186..0eb43efcc 100644 --- a/server/lib/cache/videos-preview-cache.ts +++ b/server/lib/cache/videos-preview-cache.ts | |||
@@ -47,7 +47,7 @@ class VideosPreviewCache { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | private async loadPreviews (key: string) { | 49 | private async loadPreviews (key: string) { |
50 | const video = await VideoModel.loadByUUID(key) | 50 | const video = await VideoModel.loadByUUIDAndPopulateAccountAndServerAndTags(key) |
51 | if (!video) return undefined | 51 | if (!video) return undefined |
52 | 52 | ||
53 | if (video.isOwned()) throw new Error('Cannot load preview of owned video.') | 53 | if (video.isOwned()) throw new Error('Cannot load preview of owned video.') |