aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-28 11:28:07 +0200
committerChocobozzz <me@florianbigard.com>2023-07-28 11:41:14 +0200
commitf932957b2e33da0b6d9a29dd98281b28f220a77a (patch)
tree71ada3f7308e83730d607312385170dc489da422 /server/models/video/video-channel.ts
parent89aa3331106874266f6feeee7bff852da2c1727e (diff)
downloadPeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.tar.gz
PeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.tar.zst
PeerTube-f932957b2e33da0b6d9a29dd98281b28f220a77a.zip
Remove banner/avatar fields from channel/account
Deprecated since 4.2
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 19dd681a7..2c38850d7 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -779,10 +779,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
779 displayName: this.getDisplayName(), 779 displayName: this.getDisplayName(),
780 url: actor.url, 780 url: actor.url,
781 host: actor.host, 781 host: actor.host,
782 avatars: actor.avatars, 782 avatars: actor.avatars
783
784 // TODO: remove, deprecated in 4.2
785 avatar: actor.avatar
786 } 783 }
787 } 784 }
788 785
@@ -821,10 +818,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
821 viewsPerDay, 818 viewsPerDay,
822 totalViews, 819 totalViews,
823 820
824 avatars: actor.avatars, 821 avatars: actor.avatars
825
826 // TODO: remove, deprecated in 4.2
827 avatar: actor.avatar
828 } 822 }
829 823
830 if (this.Account) videoChannel.ownerAccount = this.Account.toFormattedJSON() 824 if (this.Account) videoChannel.ownerAccount = this.Account.toFormattedJSON()