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:
parent
2cb03dc1f4
commit
213e30ef90
18 changed files with 211 additions and 126 deletions
|
@ -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 })
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue