From cfb1bb4106164d595d7b59dc320f0b8aea8926f5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 25 May 2020 18:01:58 +0200 Subject: [PATCH] Prepare for paths unification --- src/entities/User.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entities/User.ts b/src/entities/User.ts index 77b3972..0c84738 100644 --- a/src/entities/User.ts +++ b/src/entities/User.ts @@ -14,8 +14,8 @@ export enum AccountImageVisibilityLevel { EVERYONE = "everyone" } -const defaultAccountImage = "0Reverse.png"; -const errorAccountImage = "0Red.png"; +const defaultAccountImage = "avatars/0Reverse.png"; +const errorAccountImage = "avatars/0Red.png"; export enum UserPageStatus { @@ -141,7 +141,7 @@ export class User implements UserBuilder { } private static pathForAccountImageFile(file : string, sysPath = false) : string { - return pathUserData("avatars/" + file, sysPath); + return pathUserData(file, sysPath); }