mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Don't guess remote tracker URL
This commit is contained in:
@@ -30,7 +30,7 @@ export type ActivityPlaylistSegmentHashesObject = {
|
||||
href: string
|
||||
}
|
||||
|
||||
export type ActivityVideoFileMetadataObject = {
|
||||
export type ActivityVideoFileMetadataUrlObject = {
|
||||
type: 'Link'
|
||||
rel: [ 'metadata', any ]
|
||||
mediaType: 'application/json'
|
||||
@@ -39,6 +39,13 @@ export type ActivityVideoFileMetadataObject = {
|
||||
fps: number
|
||||
}
|
||||
|
||||
export type ActivityTrackerUrlObject = {
|
||||
type: 'Link'
|
||||
rel: [ 'tracker', 'websocket' | 'http' ]
|
||||
name: string
|
||||
href: string
|
||||
}
|
||||
|
||||
export type ActivityPlaylistInfohashesObject = {
|
||||
type: 'Infohash'
|
||||
name: string
|
||||
@@ -96,7 +103,7 @@ export type ActivityTagObject =
|
||||
| ActivityMentionObject
|
||||
| ActivityBitTorrentUrlObject
|
||||
| ActivityMagnetUrlObject
|
||||
| ActivityVideoFileMetadataObject
|
||||
| ActivityVideoFileMetadataUrlObject
|
||||
|
||||
export type ActivityUrlObject =
|
||||
ActivityVideoUrlObject
|
||||
@@ -104,7 +111,8 @@ export type ActivityUrlObject =
|
||||
| ActivityBitTorrentUrlObject
|
||||
| ActivityMagnetUrlObject
|
||||
| ActivityHtmlUrlObject
|
||||
| ActivityVideoFileMetadataObject
|
||||
| ActivityVideoFileMetadataUrlObject
|
||||
| ActivityTrackerUrlObject
|
||||
|
||||
export interface ActivityPubAttributedTo {
|
||||
type: 'Group' | 'Person'
|
||||
|
||||
@@ -40,11 +40,14 @@ export interface VideoObject {
|
||||
icon: ActivityIconObject[]
|
||||
|
||||
url: ActivityUrlObject[]
|
||||
|
||||
likes: string
|
||||
dislikes: string
|
||||
shares: string
|
||||
comments: string
|
||||
|
||||
attributedTo: ActivityPubAttributedTo[]
|
||||
|
||||
to?: string[]
|
||||
cc?: string[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user