aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-comment.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-13 14:12:29 +0100
committerChocobozzz <me@florianbigard.com>2022-01-13 14:16:32 +0100
commit3726c3725506d0f8a26ded34f42d7bcfb5d0e639 (patch)
tree1e4ce0d16a0ec4acf6f63ddb4aec6f6f143218d4 /server/models/video/video-comment.ts
parent696b45deb63bc9f36da9c9ee55c5d4a3a883b87e (diff)
downloadPeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.tar.gz
PeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.tar.zst
PeerTube-3726c3725506d0f8a26ded34f42d7bcfb5d0e639.zip
Add missing mediaType info to AP objects
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r--server/models/video/video-comment.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index 7f28b86b4..fa77455bc 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -874,7 +874,10 @@ export class VideoCommentModel extends Model<Partial<AttributesOnly<VideoComment
874 return { 874 return {
875 type: 'Note' as 'Note', 875 type: 'Note' as 'Note',
876 id: this.url, 876 id: this.url,
877
877 content: this.text, 878 content: this.text,
879 mediaType: 'text/markdown',
880
878 inReplyTo, 881 inReplyTo,
879 updated: this.updatedAt.toISOString(), 882 updated: this.updatedAt.toISOString(),
880 published: this.createdAt.toISOString(), 883 published: this.createdAt.toISOString(),