From c80341655fce5e70ad6da7d812e2ddeb1f8ef7f2 Mon Sep 17 00:00:00 2001 From: clementbrizard Date: Sat, 12 Jan 2019 13:41:45 +0000 Subject: Change models --- client/src/app/shared/video/video.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/shared/video/video.model.ts') diff --git a/client/src/app/shared/video/video.model.ts b/client/src/app/shared/video/video.model.ts index b92c96450..c9b052951 100644 --- a/client/src/app/shared/video/video.model.ts +++ b/client/src/app/shared/video/video.model.ts @@ -17,6 +17,7 @@ export class Video implements VideoServerModel { createdAt: Date updatedAt: Date publishedAt: Date + originallyPublishedAt: Date | string category: VideoConstant licence: VideoConstant language: VideoConstant @@ -116,6 +117,9 @@ export class Video implements VideoServerModel { this.privacy.label = peertubeTranslate(this.privacy.label, translations) this.scheduledUpdate = hash.scheduledUpdate + this.originallyPublishedAt = hash.originallyPublishedAt ? + new Date(hash.originallyPublishedAt.toString()) + : null if (this.state) this.state.label = peertubeTranslate(this.state.label, translations) this.blacklisted = hash.blacklisted -- cgit v1.2.3