1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Add banner tests

This commit is contained in:
Chocobozzz 2021-04-07 10:36:13 +02:00 committed by Chocobozzz
parent 2cb03dc1f4
commit 213e30ef90
18 changed files with 211 additions and 126 deletions

View file

@ -134,13 +134,8 @@ async function processUpdateActor (actor: ActorModel, activity: ActivityUpdate)
await updateActorInstance(actor, actorAttributesToUpdate)
for (const imageInfo of [ avatarInfo, bannerInfo ]) {
if (!imageInfo) continue
const imageOptions = Object.assign({}, imageInfo, { onDisk: false })
await updateActorImageInstance(actor, imageOptions, t)
}
await updateActorImageInstance(actor, ActorImageType.AVATAR, avatarInfo, t)
await updateActorImageInstance(actor, ActorImageType.BANNER, bannerInfo, t)
await actor.save({ transaction: t })