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 --- shared/models/activitypub/objects/abuse-object.ts | 3 +++ shared/models/activitypub/objects/playlist-object.ts | 3 +++ shared/models/activitypub/objects/video-comment-object.ts | 3 +++ shared/models/activitypub/objects/video-torrent-object.ts | 2 ++ 4 files changed, 11 insertions(+) (limited to 'shared/models/activitypub') diff --git a/shared/models/activitypub/objects/abuse-object.ts b/shared/models/activitypub/objects/abuse-object.ts index ad45cc064..d938b8693 100644 --- a/shared/models/activitypub/objects/abuse-object.ts +++ b/shared/models/activitypub/objects/abuse-object.ts @@ -2,7 +2,10 @@ import { ActivityFlagReasonObject } from './common-objects' export interface AbuseObject { type: 'Flag' + content: string + mediaType: 'text/markdown' + object: string | string[] tag?: ActivityFlagReasonObject[] diff --git a/shared/models/activitypub/objects/playlist-object.ts b/shared/models/activitypub/objects/playlist-object.ts index b561d8efd..842c03790 100644 --- a/shared/models/activitypub/objects/playlist-object.ts +++ b/shared/models/activitypub/objects/playlist-object.ts @@ -5,7 +5,10 @@ export interface PlaylistObject { type: 'Playlist' name: string + content: string + mediaType: 'text/markdown' + uuid: string totalItems: number diff --git a/shared/models/activitypub/objects/video-comment-object.ts b/shared/models/activitypub/objects/video-comment-object.ts index 1c058b86c..ba9001730 100644 --- a/shared/models/activitypub/objects/video-comment-object.ts +++ b/shared/models/activitypub/objects/video-comment-object.ts @@ -3,7 +3,10 @@ import { ActivityTagObject } from './common-objects' export interface VideoCommentObject { type: 'Note' id: string + content: string + mediaType: 'text/markdown' + inReplyTo: string published: string updated: string diff --git a/shared/models/activitypub/objects/video-torrent-object.ts b/shared/models/activitypub/objects/video-torrent-object.ts index bfbcfb1a5..9faa3bb87 100644 --- a/shared/models/activitypub/objects/video-torrent-object.ts +++ b/shared/models/activitypub/objects/video-torrent-object.ts @@ -33,8 +33,10 @@ export interface VideoObject { published: string originallyPublishedAt: string updated: string + mediaType: 'text/markdown' content: string + support: string icon: ActivityIconObject[] -- cgit v1.2.3