aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models')
-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