Add missing mediaType info to AP objects
This commit is contained in:
parent
696b45deb6
commit
3726c37255
|
@ -563,6 +563,7 @@ export class AbuseModel extends Model<Partial<AttributesOnly<AbuseModel>>> {
|
||||||
return {
|
return {
|
||||||
type: 'Flag' as 'Flag',
|
type: 'Flag' as 'Flag',
|
||||||
content: this.reason,
|
content: this.reason,
|
||||||
|
mediaType: 'text/markdown',
|
||||||
object,
|
object,
|
||||||
tag: predefinedReasons.map(r => ({
|
tag: predefinedReasons.map(r => ({
|
||||||
type: 'Hashtag' as 'Hashtag',
|
type: 'Hashtag' as 'Hashtag',
|
||||||
|
|
|
@ -874,7 +874,10 @@ export class VideoCommentModel extends Model<Partial<AttributesOnly<VideoComment
|
||||||
return {
|
return {
|
||||||
type: 'Note' as 'Note',
|
type: 'Note' as 'Note',
|
||||||
id: this.url,
|
id: this.url,
|
||||||
|
|
||||||
content: this.text,
|
content: this.text,
|
||||||
|
mediaType: 'text/markdown',
|
||||||
|
|
||||||
inReplyTo,
|
inReplyTo,
|
||||||
updated: this.updatedAt.toISOString(),
|
updated: this.updatedAt.toISOString(),
|
||||||
published: this.createdAt.toISOString(),
|
published: this.createdAt.toISOString(),
|
||||||
|
|
|
@ -679,6 +679,7 @@ export class VideoPlaylistModel extends Model<Partial<AttributesOnly<VideoPlayli
|
||||||
type: 'Playlist' as 'Playlist',
|
type: 'Playlist' as 'Playlist',
|
||||||
name: this.name,
|
name: this.name,
|
||||||
content: this.description,
|
content: this.description,
|
||||||
|
mediaType: 'text/markdown' as 'text/markdown',
|
||||||
uuid: this.uuid,
|
uuid: this.uuid,
|
||||||
published: this.createdAt.toISOString(),
|
published: this.createdAt.toISOString(),
|
||||||
updated: this.updatedAt.toISOString(),
|
updated: this.updatedAt.toISOString(),
|
||||||
|
|
|
@ -2,7 +2,10 @@ import { ActivityFlagReasonObject } from './common-objects'
|
||||||
|
|
||||||
export interface AbuseObject {
|
export interface AbuseObject {
|
||||||
type: 'Flag'
|
type: 'Flag'
|
||||||
|
|
||||||
content: string
|
content: string
|
||||||
|
mediaType: 'text/markdown'
|
||||||
|
|
||||||
object: string | string[]
|
object: string | string[]
|
||||||
|
|
||||||
tag?: ActivityFlagReasonObject[]
|
tag?: ActivityFlagReasonObject[]
|
||||||
|
|
|
@ -5,7 +5,10 @@ export interface PlaylistObject {
|
||||||
type: 'Playlist'
|
type: 'Playlist'
|
||||||
|
|
||||||
name: string
|
name: string
|
||||||
|
|
||||||
content: string
|
content: string
|
||||||
|
mediaType: 'text/markdown'
|
||||||
|
|
||||||
uuid: string
|
uuid: string
|
||||||
|
|
||||||
totalItems: number
|
totalItems: number
|
||||||
|
|
|
@ -3,7 +3,10 @@ import { ActivityTagObject } from './common-objects'
|
||||||
export interface VideoCommentObject {
|
export interface VideoCommentObject {
|
||||||
type: 'Note'
|
type: 'Note'
|
||||||
id: string
|
id: string
|
||||||
|
|
||||||
content: string
|
content: string
|
||||||
|
mediaType: 'text/markdown'
|
||||||
|
|
||||||
inReplyTo: string
|
inReplyTo: string
|
||||||
published: string
|
published: string
|
||||||
updated: string
|
updated: string
|
||||||
|
|
|
@ -33,8 +33,10 @@ export interface VideoObject {
|
||||||
published: string
|
published: string
|
||||||
originallyPublishedAt: string
|
originallyPublishedAt: string
|
||||||
updated: string
|
updated: string
|
||||||
|
|
||||||
mediaType: 'text/markdown'
|
mediaType: 'text/markdown'
|
||||||
content: string
|
content: string
|
||||||
|
|
||||||
support: string
|
support: string
|
||||||
|
|
||||||
icon: ActivityIconObject[]
|
icon: ActivityIconObject[]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user