aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-format-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r--server/models/video/video-format-utils.ts4
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 76d0445d4..c63285e25 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -67,6 +67,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting
67 createdAt: video.createdAt, 67 createdAt: video.createdAt,
68 updatedAt: video.updatedAt, 68 updatedAt: video.updatedAt,
69 publishedAt: video.publishedAt, 69 publishedAt: video.publishedAt,
70 originallyPublishedAt: video.originallyPublishedAt,
70 account: { 71 account: {
71 id: formattedAccount.id, 72 id: formattedAccount.id,
72 uuid: formattedAccount.uuid, 73 uuid: formattedAccount.uuid,
@@ -323,6 +324,9 @@ function videoModelToActivityPubObject (video: VideoModel): VideoTorrentObject {
323 commentsEnabled: video.commentsEnabled, 324 commentsEnabled: video.commentsEnabled,
324 downloadEnabled: video.downloadEnabled, 325 downloadEnabled: video.downloadEnabled,
325 published: video.publishedAt.toISOString(), 326 published: video.publishedAt.toISOString(),
327 originallyPublishedAt: video.originallyPublishedAt ?
328 video.originallyPublishedAt.toISOString() :
329 null,
326 updated: video.updatedAt.toISOString(), 330 updated: video.updatedAt.toISOString(),
327 mediaType: 'text/markdown', 331 mediaType: 'text/markdown',
328 content: video.getTruncatedDescription(), 332 content: video.getTruncatedDescription(),