aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-09 11:32:40 +0200
committerChocobozzz <me@florianbigard.com>2019-08-09 11:32:40 +0200
commit557b13ae24019d9ab214bbea7eaa0f892c8f4b05 (patch)
treeaa32396531acf93e3dfdb29880177813039ed77f /server/models/video/video.ts
parentc5407d7046168abb4098df1408e7aa84519cb61a (diff)
downloadPeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.gz
PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.tar.zst
PeerTube-557b13ae24019d9ab214bbea7eaa0f892c8f4b05.zip
Lazy load avatars
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index ae29cf286..1321337ff 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -63,6 +63,7 @@ import {
63 CONSTRAINTS_FIELDS, 63 CONSTRAINTS_FIELDS,
64 HLS_REDUNDANCY_DIRECTORY, 64 HLS_REDUNDANCY_DIRECTORY,
65 HLS_STREAMING_PLAYLIST_DIRECTORY, 65 HLS_STREAMING_PLAYLIST_DIRECTORY,
66 LAZY_STATIC_PATHS,
66 REMOTE_SCHEME, 67 REMOTE_SCHEME,
67 STATIC_DOWNLOAD_PATHS, 68 STATIC_DOWNLOAD_PATHS,
68 STATIC_PATHS, 69 STATIC_PATHS,
@@ -1856,7 +1857,7 @@ export class VideoModel extends Model<VideoModel> {
1856 if (!preview) return null 1857 if (!preview) return null
1857 1858
1858 // We use a local cache, so specify our cache endpoint instead of potential remote URL 1859 // We use a local cache, so specify our cache endpoint instead of potential remote URL
1859 return join(STATIC_PATHS.PREVIEWS, preview.filename) 1860 return join(LAZY_STATIC_PATHS.PREVIEWS, preview.filename)
1860 } 1861 }
1861 1862
1862 toFormattedJSON (options?: VideoFormattingJSONOptions): Video { 1863 toFormattedJSON (options?: VideoFormattingJSONOptions): Video {