diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-28 11:28:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-28 11:41:14 +0200 |
commit | f932957b2e33da0b6d9a29dd98281b28f220a77a (patch) | |
tree | 71ada3f7308e83730d607312385170dc489da422 /shared | |
parent | 89aa3331106874266f6feeee7bff852da2c1727e (diff) | |
download | PeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.tar.gz PeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.tar.zst PeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.zip |
Remove banner/avatar fields from channel/account
Deprecated since 4.2
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/activitypub/activitypub-actor.ts | 3 | ||||
-rw-r--r-- | shared/models/actors/account.model.ts | 3 | ||||
-rw-r--r-- | shared/models/actors/actor.model.ts | 3 | ||||
-rw-r--r-- | shared/models/videos/channel/video-channel.model.ts | 6 |
4 files changed, 0 insertions, 15 deletions
diff --git a/shared/models/activitypub/activitypub-actor.ts b/shared/models/activitypub/activitypub-actor.ts index efb6edec4..b86bcb764 100644 --- a/shared/models/activitypub/activitypub-actor.ts +++ b/shared/models/activitypub/activitypub-actor.ts | |||
@@ -28,10 +28,7 @@ export interface ActivityPubActor { | |||
28 | } | 28 | } |
29 | 29 | ||
30 | image?: ActivityIconObject | ActivityIconObject[] | 30 | image?: ActivityIconObject | ActivityIconObject[] |
31 | |||
32 | icon?: ActivityIconObject | ActivityIconObject[] | 31 | icon?: ActivityIconObject | ActivityIconObject[] |
33 | // TODO: migrate to `icon`, introduced in 4.2 | ||
34 | icons?: ActivityIconObject[] | ||
35 | 32 | ||
36 | published?: string | 33 | published?: string |
37 | } | 34 | } |
diff --git a/shared/models/actors/account.model.ts b/shared/models/actors/account.model.ts index 60f4236d5..9fbec60ba 100644 --- a/shared/models/actors/account.model.ts +++ b/shared/models/actors/account.model.ts | |||
@@ -19,7 +19,4 @@ export interface AccountSummary { | |||
19 | host: string | 19 | host: string |
20 | 20 | ||
21 | avatars: ActorImage[] | 21 | avatars: ActorImage[] |
22 | |||
23 | // TODO: remove, deprecated in 4.2 | ||
24 | avatar: ActorImage | ||
25 | } | 22 | } |
diff --git a/shared/models/actors/actor.model.ts b/shared/models/actors/actor.model.ts index bf86a917f..ab0760263 100644 --- a/shared/models/actors/actor.model.ts +++ b/shared/models/actors/actor.model.ts | |||
@@ -10,7 +10,4 @@ export interface Actor { | |||
10 | createdAt: Date | string | 10 | createdAt: Date | string |
11 | 11 | ||
12 | avatars: ActorImage[] | 12 | avatars: ActorImage[] |
13 | |||
14 | // TODO: remove, deprecated in 4.2 | ||
15 | avatar: ActorImage | ||
16 | } | 13 | } |
diff --git a/shared/models/videos/channel/video-channel.model.ts b/shared/models/videos/channel/video-channel.model.ts index 68e2f9c4c..ce5fc0e8d 100644 --- a/shared/models/videos/channel/video-channel.model.ts +++ b/shared/models/videos/channel/video-channel.model.ts | |||
@@ -21,9 +21,6 @@ export interface VideoChannel extends Actor { | |||
21 | totalViews?: number | 21 | totalViews?: number |
22 | 22 | ||
23 | banners: ActorImage[] | 23 | banners: ActorImage[] |
24 | |||
25 | // TODO: remove, deprecated in 4.2 | ||
26 | banner: ActorImage | ||
27 | } | 24 | } |
28 | 25 | ||
29 | export interface VideoChannelSummary { | 26 | export interface VideoChannelSummary { |
@@ -34,7 +31,4 @@ export interface VideoChannelSummary { | |||
34 | host: string | 31 | host: string |
35 | 32 | ||
36 | avatars: ActorImage[] | 33 | avatars: ActorImage[] |
37 | |||
38 | // TODO: remove, deprecated in 4.2 | ||
39 | avatar: ActorImage | ||
40 | } | 34 | } |