aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video.ts')
-rw-r--r--server/models/video.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video.ts b/server/models/video.ts
index 3f808b811..2234664f4 100644
--- a/server/models/video.ts
+++ b/server/models/video.ts
@@ -447,7 +447,7 @@ isOwned = function () {
447 return this.remoteId === null 447 return this.remoteId === null
448} 448}
449 449
450toFormatedJSON = function () { 450toFormatedJSON = function (this: VideoInstance) {
451 let podHost 451 let podHost
452 452
453 if (this.Author.Pod) { 453 if (this.Author.Pod) {
@@ -488,7 +488,7 @@ toFormatedJSON = function () {
488 views: this.views, 488 views: this.views,
489 likes: this.likes, 489 likes: this.likes,
490 dislikes: this.dislikes, 490 dislikes: this.dislikes,
491 tags: map(this.Tags, 'name'), 491 tags: map<VideoTagInstance, string>(this.Tags, 'name'),
492 thumbnailPath: join(STATIC_PATHS.THUMBNAILS, this.getThumbnailName()), 492 thumbnailPath: join(STATIC_PATHS.THUMBNAILS, this.getThumbnailName()),
493 createdAt: this.createdAt, 493 createdAt: this.createdAt,
494 updatedAt: this.updatedAt 494 updatedAt: this.updatedAt