aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/thumbnail.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/thumbnail.ts')
-rw-r--r--server/models/video/thumbnail.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/thumbnail.ts b/server/models/video/thumbnail.ts
index ec945893f..206e9a3d6 100644
--- a/server/models/video/thumbnail.ts
+++ b/server/models/video/thumbnail.ts
@@ -42,7 +42,7 @@ export class ThumbnailModel extends Model<ThumbnailModel> {
42 42
43 @AllowNull(true) 43 @AllowNull(true)
44 @Column 44 @Column
45 url: string 45 fileUrl: string
46 46
47 @ForeignKey(() => VideoModel) 47 @ForeignKey(() => VideoModel)
48 @Column 48 @Column
@@ -100,8 +100,8 @@ export class ThumbnailModel extends Model<ThumbnailModel> {
100 return videoUUID + '.jpg' 100 return videoUUID + '.jpg'
101 } 101 }
102 102
103 getUrl () { 103 getFileUrl () {
104 if (this.url) return this.url 104 if (this.fileUrl) return this.fileUrl
105 105
106 const staticPath = ThumbnailModel.types[this.type].staticPath 106 const staticPath = ThumbnailModel.types[this.type].staticPath
107 return WEBSERVER.URL + staticPath + this.filename 107 return WEBSERVER.URL + staticPath + this.filename