From f932957b2e33da0b6d9a29dd98281b28f220a77a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 28 Jul 2023 11:28:07 +0200 Subject: Remove banner/avatar fields from channel/account Deprecated since 4.2 --- shared/models/activitypub/activitypub-actor.ts | 3 --- shared/models/actors/account.model.ts | 3 --- shared/models/actors/actor.model.ts | 3 --- shared/models/videos/channel/video-channel.model.ts | 6 ------ 4 files changed, 15 deletions(-) (limited to 'shared/models') 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 { } image?: ActivityIconObject | ActivityIconObject[] - icon?: ActivityIconObject | ActivityIconObject[] - // TODO: migrate to `icon`, introduced in 4.2 - icons?: ActivityIconObject[] published?: string } 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 { host: string avatars: ActorImage[] - - // TODO: remove, deprecated in 4.2 - avatar: ActorImage } 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 { createdAt: Date | string avatars: ActorImage[] - - // TODO: remove, deprecated in 4.2 - avatar: ActorImage } 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 { totalViews?: number banners: ActorImage[] - - // TODO: remove, deprecated in 4.2 - banner: ActorImage } export interface VideoChannelSummary { @@ -34,7 +31,4 @@ export interface VideoChannelSummary { host: string avatars: ActorImage[] - - // TODO: remove, deprecated in 4.2 - avatar: ActorImage } -- cgit v1.2.3