From 3726c3725506d0f8a26ded34f42d7bcfb5d0e639 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Jan 2022 14:12:29 +0100 Subject: Add missing mediaType info to AP objects --- server/models/abuse/abuse.ts | 1 + server/models/video/video-comment.ts | 3 +++ server/models/video/video-playlist.ts | 1 + 3 files changed, 5 insertions(+) (limited to 'server/models') diff --git a/server/models/abuse/abuse.ts b/server/models/abuse/abuse.ts index 4344df006..f85f48e86 100644 --- a/server/models/abuse/abuse.ts +++ b/server/models/abuse/abuse.ts @@ -563,6 +563,7 @@ export class AbuseModel extends Model>> { return { type: 'Flag' as 'Flag', content: this.reason, + mediaType: 'text/markdown', object, tag: predefinedReasons.map(r => ({ type: 'Hashtag' as 'Hashtag', 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