]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/actor-image.ts
Implemented configurable minimum signup age
[github/Chocobozzz/PeerTube.git] / server / lib / actor-image.ts
index 59afa93bd15e3e4587bf4dbd9a2912a84a7b40e3..f271f0b5b264d879f3f74d1adb1580a8b73f1b02 100644 (file)
@@ -34,11 +34,12 @@ async function updateLocalActorImageFile (
       const actorImageInfo = {
         name: imageName,
         fileUrl: null,
-        type,
+        height: imageSize.height,
+        width: imageSize.width,
         onDisk: true
       }
 
-      const updatedActor = await updateActorImageInstance(accountOrChannel.Actor, actorImageInfo, t)
+      const updatedActor = await updateActorImageInstance(accountOrChannel.Actor, type, actorImageInfo, t)
       await updatedActor.save({ transaction: t })
 
       await sendUpdateActor(accountOrChannel, t)