aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/migrations/peertube-4.2.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/migrations/peertube-4.2.ts')
-rw-r--r--scripts/migrations/peertube-4.2.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/migrations/peertube-4.2.ts b/scripts/migrations/peertube-4.2.ts
index 513c629ef..d8929692b 100644
--- a/scripts/migrations/peertube-4.2.ts
+++ b/scripts/migrations/peertube-4.2.ts
@@ -78,7 +78,7 @@ async function fillAvatarSizeIfNeeded (accountOrChannel: MAccountDefault | MChan
78 78
79 console.log('Filling size of avatars of %s.', accountOrChannel.name) 79 console.log('Filling size of avatars of %s.', accountOrChannel.name)
80 80
81 const { width, height } = await getImageSize(join(CONFIG.STORAGE.ACTOR_IMAGES, avatar.filename)) 81 const { width, height } = await getImageSize(join(CONFIG.STORAGE.ACTOR_IMAGES_DIR, avatar.filename))
82 avatar.width = width 82 avatar.width = width
83 avatar.height = height 83 avatar.height = height
84 84
@@ -107,8 +107,8 @@ async function generateSmallerAvatar (actor: MActorDefault) {
107 const sourceFilename = bigAvatar.filename 107 const sourceFilename = bigAvatar.filename
108 108
109 const newImageName = buildUUID() + getLowercaseExtension(sourceFilename) 109 const newImageName = buildUUID() + getLowercaseExtension(sourceFilename)
110 const source = join(CONFIG.STORAGE.ACTOR_IMAGES, sourceFilename) 110 const source = join(CONFIG.STORAGE.ACTOR_IMAGES_DIR, sourceFilename)
111 const destination = join(CONFIG.STORAGE.ACTOR_IMAGES, newImageName) 111 const destination = join(CONFIG.STORAGE.ACTOR_IMAGES_DIR, newImageName)
112 112
113 await processImage({ path: source, destination, newSize: imageSize, keepOriginal: true }) 113 await processImage({ path: source, destination, newSize: imageSize, keepOriginal: true })
114 114