From 240085d0056fd97ac3c7fa8fa4ce9bc32afc4d6e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Aug 2018 10:30:53 +0200 Subject: Fix tests --- server/lib/avatar.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/lib') diff --git a/server/lib/avatar.ts b/server/lib/avatar.ts index 7fdef008c..5cfb81fc7 100644 --- a/server/lib/avatar.ts +++ b/server/lib/avatar.ts @@ -1,5 +1,4 @@ import 'multer' -import * as uuidv4 from 'uuid' import { sendUpdateActor } from './activitypub/send' import { AVATARS_SIZE, CONFIG, sequelizeTypescript } from '../initializers' import { updateActorAvatarInstance } from './activitypub' @@ -15,7 +14,7 @@ async function updateActorAvatarFile ( accountOrChannel: AccountModel | VideoChannelModel ) { const extension = extname(avatarPhysicalFile.filename) - const avatarName = uuidv4() + extension + const avatarName = actor.uuid + extension const destination = join(CONFIG.STORAGE.AVATARS_DIR, avatarName) await processImage(avatarPhysicalFile, destination, AVATARS_SIZE) -- cgit v1.2.3