diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-20 17:49:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-20 17:49:58 +0100 |
commit | 5f0805d39b94eb2de1b73e0f43ac8685ae900994 (patch) | |
tree | cba6c3022caad5e424bd6639bbaaae92113b7b7f /server/lib/cache | |
parent | cb9244de975909bac2922c4412fd948646ff3ba7 (diff) | |
download | PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.tar.gz PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.tar.zst PeerTube-5f0805d39b94eb2de1b73e0f43ac8685ae900994.zip |
Design modals
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 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.') |