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 /server/lib/activitypub/actors | |
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 'server/lib/activitypub/actors')
-rw-r--r-- | server/lib/activitypub/actors/shared/object-to-model-attributes.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/activitypub/actors/shared/object-to-model-attributes.ts b/server/lib/activitypub/actors/shared/object-to-model-attributes.ts index d854bf2b5..3ce332681 100644 --- a/server/lib/activitypub/actors/shared/object-to-model-attributes.ts +++ b/server/lib/activitypub/actors/shared/object-to-model-attributes.ts | |||
@@ -32,7 +32,7 @@ function getActorAttributesFromObject ( | |||
32 | 32 | ||
33 | function getImagesInfoFromObject (actorObject: ActivityPubActor, type: ActorImageType) { | 33 | function getImagesInfoFromObject (actorObject: ActivityPubActor, type: ActorImageType) { |
34 | const iconsOrImages = type === ActorImageType.AVATAR | 34 | const iconsOrImages = type === ActorImageType.AVATAR |
35 | ? actorObject.icons || actorObject.icon | 35 | ? actorObject.icon |
36 | : actorObject.image | 36 | : actorObject.image |
37 | 37 | ||
38 | return normalizeIconOrImage(iconsOrImages) | 38 | return normalizeIconOrImage(iconsOrImages) |