diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-29 14:42:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-29 14:42:02 +0100 |
commit | d5692d4088cdd9fde3be6ff34be8ce2816dab0cf (patch) | |
tree | e221a976773fd4365903f9bbf5e251cb729d211d /server/models/video/thumbnail.ts | |
parent | cf59a2a0c367683ba35758419499bf6087c192ec (diff) | |
parent | 9c9a16678354f737144ce2156ce0b7e4faa97eac (diff) | |
download | PeerTube-d5692d4088cdd9fde3be6ff34be8ce2816dab0cf.tar.gz PeerTube-d5692d4088cdd9fde3be6ff34be8ce2816dab0cf.tar.zst PeerTube-d5692d4088cdd9fde3be6ff34be8ce2816dab0cf.zip |
Merge branch 'release/2.1.0' into develop
Diffstat (limited to 'server/models/video/thumbnail.ts')
-rw-r--r-- | server/models/video/thumbnail.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<ThumbnailModel> { | |||
126 | return videoUUID + '.jpg' | 126 | return videoUUID + '.jpg' |
127 | } | 127 | } |
128 | 128 | ||
129 | getFileUrl () { | 129 | getFileUrl (isLocal: boolean) { |
130 | if (this.fileUrl) return this.fileUrl | 130 | if (isLocal === false) return this.fileUrl |
131 | 131 | ||
132 | const staticPath = ThumbnailModel.types[this.type].staticPath | 132 | const staticPath = ThumbnailModel.types[this.type].staticPath |
133 | return WEBSERVER.URL + staticPath + this.filename | 133 | return WEBSERVER.URL + staticPath + this.filename |