From 9c9a16678354f737144ce2156ce0b7e4faa97eac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Jan 2020 14:41:42 +0100 Subject: Fix AP icon URL for imported videos --- server/models/video/thumbnail.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/video/thumbnail.ts') diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts index e68a6711f..3b011b1d2 100644 --- a/server/models/video/thumbnail.ts +++ b/server/models/video/thumbnail.ts @@ -126,8 +126,8 @@ export class ThumbnailModel extends Model { 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 -- cgit v1.2.3