Add banners support

This commit is contained in:
Chocobozzz
2021-04-06 17:01:35 +02:00
committed by Chocobozzz
parent f479685678
commit 2cb03dc1f4
33 changed files with 392 additions and 240 deletions

View File

@@ -27,5 +27,6 @@ export interface ActivityPubActor {
publicKeyPem: string
}
icon: ActivityIconObject
icon?: ActivityIconObject
image?: ActivityIconObject
}

View File

@@ -9,7 +9,7 @@ export interface ActivityIdentifierObject {
export interface ActivityIconObject {
type: 'Image'
url: string
mediaType: 'image/jpeg' | 'image/png'
mediaType: string
width?: number
height?: number
}

View File

@@ -15,6 +15,8 @@ export interface VideoChannel extends Actor {
videosCount?: number
viewsPerDay?: ViewsPerDate[] // chronologically ordered
banner?: ActorImage
}
export interface VideoChannelSummary {