1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add avatar to prune script

This commit is contained in:
Chocobozzz 2019-08-09 15:04:36 +02:00
parent 5bb2eb5660
commit e2600d8b26
No known key found for this signature in database
GPG key ID: 583A612D890159BE
11 changed files with 326 additions and 47 deletions

View file

@ -18,7 +18,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
}
async getFilePathImpl (videoUUID: string) {
const video = await VideoModel.loadByUUIDWithFile(videoUUID)
const video = await VideoModel.loadByUUID(videoUUID)
if (!video) return undefined
if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() }