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

Delete remote thumbnails/preview on update

This commit is contained in:
Chocobozzz 2025-01-28 14:11:43 +01:00
parent 372e15eb49
commit 9f64909fc7
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 67 additions and 0 deletions

View file

@ -211,6 +211,7 @@ export function updateRemoteVideoThumbnail (options: {
// Do not change the thumbnail filename if the file did not change
if (hasThumbnailUrlChanged(existingThumbnail, fileUrl, video)) {
thumbnail.previousThumbnailFilename = thumbnail.filename
thumbnail.filename = generatedFilename
}