aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-18 08:48:24 +0200
committerChocobozzz <me@florianbigard.com>2018-10-18 10:44:15 +0200
commite27ff5da6ed7bc1f56f50f862b80fb0c7d8a6d98 (patch)
tree81b45623621952bd75efa3f701e5a8bd37a50f03 /shared
parent244b4ae3973bc1511464a08158a123767f83179c (diff)
downloadPeerTube-e27ff5da6ed7bc1f56f50f862b80fb0c7d8a6d98.tar.gz
PeerTube-e27ff5da6ed7bc1f56f50f862b80fb0c7d8a6d98.tar.zst
PeerTube-e27ff5da6ed7bc1f56f50f862b80fb0c7d8a6d98.zip
AP mimeType -> mediaType
Diffstat (limited to 'shared')
-rw-r--r--shared/models/activitypub/objects/common-objects.ts12
1 files changed, 9 insertions, 3 deletions
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts
index 1de60da94..118a4f43d 100644
--- a/shared/models/activitypub/objects/common-objects.ts
+++ b/shared/models/activitypub/objects/common-objects.ts
@@ -19,7 +19,9 @@ export interface ActivityIconObject {
19 19
20export type ActivityVideoUrlObject = { 20export type ActivityVideoUrlObject = {
21 type: 'Link' 21 type: 'Link'
22 mimeType: 'video/mp4' | 'video/webm' | 'video/ogg' 22 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
23 mimeType?: 'video/mp4' | 'video/webm' | 'video/ogg'
24 mediaType: 'video/mp4' | 'video/webm' | 'video/ogg'
23 href: string 25 href: string
24 height: number 26 height: number
25 size: number 27 size: number
@@ -31,14 +33,18 @@ export type ActivityUrlObject =
31 | 33 |
32 { 34 {
33 type: 'Link' 35 type: 'Link'
34 mimeType: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet' 36 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
37 mimeType?: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet'
38 mediaType: 'application/x-bittorrent' | 'application/x-bittorrent;x-scheme-handler/magnet'
35 href: string 39 href: string
36 height: number 40 height: number
37 } 41 }
38 | 42 |
39 { 43 {
40 type: 'Link' 44 type: 'Link'
41 mimeType: 'text/html' 45 // TODO: remove mimeType (backward compatibility, introduced in v1.1.0)
46 mimeType?: 'text/html'
47 mediaType: 'text/html'
42 href: string 48 href: string
43 } 49 }
44 50