Skip to content

Commit

Permalink
More robust RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Feb 15, 2024
1 parent bfdd4d1 commit acd9eae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/core/models/video/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,12 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
this.Thumbnails.push(savedThumbnail)
}

// ---------------------------------------------------------------------------

hasMiniature () {
return !!this.getMiniature()
}

getMiniature () {
if (Array.isArray(this.Thumbnails) === false) return undefined

Expand All @@ -1745,6 +1751,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
return this.Thumbnails.find(t => t.type === ThumbnailType.PREVIEW)
}

// ---------------------------------------------------------------------------

isOwned () {
return this.remote === false
}
Expand Down

0 comments on commit acd9eae

Please sign in to comment.