diff options
author | Chocobozzz <me@florianbigard.com> | 2021-04-07 10:36:13 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-04-08 10:07:53 +0200 |
commit | 213e30ef90806369529684ac9c247d73b8dc7928 (patch) | |
tree | 7f834f2485a074b1d3052745fa5236d34c0f26db /server/lib/activitypub/process | |
parent | 2cb03dc1f4e01ba491c36caff30c33fe9c5bad89 (diff) | |
download | PeerTube-213e30ef90806369529684ac9c247d73b8dc7928.tar.gz PeerTube-213e30ef90806369529684ac9c247d73b8dc7928.tar.zst PeerTube-213e30ef90806369529684ac9c247d73b8dc7928.zip |
Add banner tests
Diffstat (limited to 'server/lib/activitypub/process')
-rw-r--r-- | server/lib/activitypub/process/process-update.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/server/lib/activitypub/process/process-update.ts b/server/lib/activitypub/process/process-update.ts index ad3bb392d..6df9b93b2 100644 --- a/server/lib/activitypub/process/process-update.ts +++ b/server/lib/activitypub/process/process-update.ts | |||
@@ -134,13 +134,8 @@ async function processUpdateActor (actor: ActorModel, activity: ActivityUpdate) | |||
134 | 134 | ||
135 | await updateActorInstance(actor, actorAttributesToUpdate) | 135 | await updateActorInstance(actor, actorAttributesToUpdate) |
136 | 136 | ||
137 | for (const imageInfo of [ avatarInfo, bannerInfo ]) { | 137 | await updateActorImageInstance(actor, ActorImageType.AVATAR, avatarInfo, t) |
138 | if (!imageInfo) continue | 138 | await updateActorImageInstance(actor, ActorImageType.BANNER, bannerInfo, t) |
139 | |||
140 | const imageOptions = Object.assign({}, imageInfo, { onDisk: false }) | ||
141 | |||
142 | await updateActorImageInstance(actor, imageOptions, t) | ||
143 | } | ||
144 | 139 | ||
145 | await actor.save({ transaction: t }) | 140 | await actor.save({ transaction: t }) |
146 | 141 | ||