diff options
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r-- | server/models/video/video-format-utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts index de0747f22..7a9513cbe 100644 --- a/server/models/video/video-format-utils.ts +++ b/server/models/video/video-format-utils.ts | |||
@@ -60,6 +60,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting | |||
60 | createdAt: video.createdAt, | 60 | createdAt: video.createdAt, |
61 | updatedAt: video.updatedAt, | 61 | updatedAt: video.updatedAt, |
62 | publishedAt: video.publishedAt, | 62 | publishedAt: video.publishedAt, |
63 | originallyPublishedAt: video.originallyPublishedAt, | ||
63 | account: { | 64 | account: { |
64 | id: formattedAccount.id, | 65 | id: formattedAccount.id, |
65 | uuid: formattedAccount.uuid, | 66 | uuid: formattedAccount.uuid, |
@@ -264,6 +265,9 @@ function videoModelToActivityPubObject (video: VideoModel): VideoTorrentObject { | |||
264 | state: video.state, | 265 | state: video.state, |
265 | commentsEnabled: video.commentsEnabled, | 266 | commentsEnabled: video.commentsEnabled, |
266 | published: video.publishedAt.toISOString(), | 267 | published: video.publishedAt.toISOString(), |
268 | originallyPublishedAt: video.originallyPublishedAt ? | ||
269 | video.originallyPublishedAt.toISOString() : | ||
270 | null, | ||
267 | updated: video.updatedAt.toISOString(), | 271 | updated: video.updatedAt.toISOString(), |
268 | mediaType: 'text/markdown', | 272 | mediaType: 'text/markdown', |
269 | content: video.getTruncatedDescription(), | 273 | content: video.getTruncatedDescription(), |