mirror of https://github.com/Chocobozzz/PeerTube
More robust RSS feed
parent
bfdd4d10f3
commit
acd9eaeb1d
|
@ -1729,6 +1729,12 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
|
||||||
this.Thumbnails.push(savedThumbnail)
|
this.Thumbnails.push(savedThumbnail)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
hasMiniature () {
|
||||||
|
return !!this.getMiniature()
|
||||||
|
}
|
||||||
|
|
||||||
getMiniature () {
|
getMiniature () {
|
||||||
if (Array.isArray(this.Thumbnails) === false) return undefined
|
if (Array.isArray(this.Thumbnails) === false) return undefined
|
||||||
|
|
||||||
|
@ -1745,6 +1751,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
|
||||||
return this.Thumbnails.find(t => t.type === ThumbnailType.PREVIEW)
|
return this.Thumbnails.find(t => t.type === ThumbnailType.PREVIEW)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
isOwned () {
|
isOwned () {
|
||||||
return this.remote === false
|
return this.remote === false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue