diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-11 14:41:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-11 15:16:39 +0100 |
commit | 7519127b5cb44095f78f6bf4c51d4ebf2b7d5e88 (patch) | |
tree | ed94c1fb00a85a1f25c15b9a82831f4999e72948 /server/models/video/video-format-utils.ts | |
parent | 6913f69134947432a192890b2de7c2d48094e85c (diff) | |
download | PeerTube-7519127b5cb44095f78f6bf4c51d4ebf2b7d5e88.tar.gz PeerTube-7519127b5cb44095f78f6bf4c51d4ebf2b7d5e88.tar.zst PeerTube-7519127b5cb44095f78f6bf4c51d4ebf2b7d5e88.zip |
Add originallyPublishedAt unit tests
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r-- | server/models/video/video-format-utils.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts index c63285e25..a62335333 100644 --- a/server/models/video/video-format-utils.ts +++ b/server/models/video/video-format-utils.ts | |||
@@ -324,9 +324,7 @@ function videoModelToActivityPubObject (video: VideoModel): VideoTorrentObject { | |||
324 | commentsEnabled: video.commentsEnabled, | 324 | commentsEnabled: video.commentsEnabled, |
325 | downloadEnabled: video.downloadEnabled, | 325 | downloadEnabled: video.downloadEnabled, |
326 | published: video.publishedAt.toISOString(), | 326 | published: video.publishedAt.toISOString(), |
327 | originallyPublishedAt: video.originallyPublishedAt ? | 327 | originallyPublishedAt: video.originallyPublishedAt ? video.originallyPublishedAt.toISOString() : null, |
328 | video.originallyPublishedAt.toISOString() : | ||
329 | null, | ||
330 | updated: video.updatedAt.toISOString(), | 328 | updated: video.updatedAt.toISOString(), |
331 | mediaType: 'text/markdown', | 329 | mediaType: 'text/markdown', |
332 | content: video.getTruncatedDescription(), | 330 | content: video.getTruncatedDescription(), |