diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 4dce8e2fc..60023bc8c 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -486,7 +486,7 @@ toFormattedJSON = function (this: VideoInstance) { | |||
486 | description: this.getTruncatedDescription(), | 486 | description: this.getTruncatedDescription(), |
487 | serverHost, | 487 | serverHost, |
488 | isLocal: this.isOwned(), | 488 | isLocal: this.isOwned(), |
489 | account: this.VideoChannel.Account.name, | 489 | accountName: this.VideoChannel.Account.name, |
490 | duration: this.duration, | 490 | duration: this.duration, |
491 | views: this.views, | 491 | views: this.views, |
492 | likes: this.likes, | 492 | likes: this.likes, |
@@ -514,6 +514,7 @@ toFormattedDetailsJSON = function (this: VideoInstance) { | |||
514 | privacy: this.privacy, | 514 | privacy: this.privacy, |
515 | descriptionPath: this.getDescriptionPath(), | 515 | descriptionPath: this.getDescriptionPath(), |
516 | channel: this.VideoChannel.toFormattedJSON(), | 516 | channel: this.VideoChannel.toFormattedJSON(), |
517 | account: this.VideoChannel.Account.toFormattedJSON(), | ||
517 | files: [] | 518 | files: [] |
518 | } | 519 | } |
519 | 520 | ||