diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 3eed1b58d..ba4cf541b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1576,9 +1576,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> { | |||
1576 | 1576 | ||
1577 | if (Array.isArray(this.Thumbnails) === false) this.Thumbnails = [] | 1577 | if (Array.isArray(this.Thumbnails) === false) this.Thumbnails = [] |
1578 | 1578 | ||
1579 | // Already have this thumbnail, skip | 1579 | this.Thumbnails = this.Thumbnails.filter(t => t.id !== savedThumbnail.id) |
1580 | if (this.Thumbnails.find(t => t.id === savedThumbnail.id)) return | ||
1581 | |||
1582 | this.Thumbnails.push(savedThumbnail) | 1580 | this.Thumbnails.push(savedThumbnail) |
1583 | } | 1581 | } |
1584 | 1582 | ||