Merge branch 'release/2.1.0' into develop
This commit is contained in:
commit
d5692d4088
2 changed files with 3 additions and 3 deletions
|
@ -126,8 +126,8 @@ export class ThumbnailModel extends Model<ThumbnailModel> {
|
|||
return videoUUID + '.jpg'
|
||||
}
|
||||
|
||||
getFileUrl () {
|
||||
if (this.fileUrl) return this.fileUrl
|
||||
getFileUrl (isLocal: boolean) {
|
||||
if (isLocal === false) return this.fileUrl
|
||||
|
||||
const staticPath = ThumbnailModel.types[this.type].staticPath
|
||||
return WEBSERVER.URL + staticPath + this.filename
|
||||
|
|
|
@ -338,7 +338,7 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoTorrentObject {
|
|||
subtitleLanguage,
|
||||
icon: {
|
||||
type: 'Image',
|
||||
url: miniature.getFileUrl(),
|
||||
url: miniature.getFileUrl(video.isOwned()),
|
||||
mediaType: 'image/jpeg',
|
||||
width: miniature.width,
|
||||
height: miniature.height
|
||||
|
|
Loading…
Reference in a new issue