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:
parent
5bb2eb5660
commit
e2600d8b26
11 changed files with 326 additions and 47 deletions
|
@ -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() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue