From a673647fba673626a70b66ca8465140a6ef6e070 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Mon, 26 Dec 2022 18:52:16 +0100 Subject: [PATCH] server: remove avatarColor and bannerColor properties According to comments next to those properties, they were kept for backward compatibility. However they were always being set to null. Changelog: Removed --- packages/backend/src/models/repositories/user.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/backend/src/models/repositories/user.ts b/packages/backend/src/models/repositories/user.ts index 13ddfd428..fd308dcae 100644 --- a/packages/backend/src/models/repositories/user.ts +++ b/packages/backend/src/models/repositories/user.ts @@ -307,7 +307,6 @@ export const UserRepository = db.getRepository(User).extend({ host: user.host, avatarUrl: this.getAvatarUrlSync(user), avatarBlurhash: user.avatar?.blurhash || null, - avatarColor: null, // 後方互換性のため isAdmin: user.isAdmin || falsy, isModerator: user.isModerator || falsy, isBot: user.isBot || falsy, @@ -332,7 +331,6 @@ export const UserRepository = db.getRepository(User).extend({ lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null, bannerUrl: user.banner ? DriveFiles.getPublicUrl(user.banner, false) : null, bannerBlurhash: user.banner?.blurhash || null, - bannerColor: null, // 後方互換性のため isLocked: user.isLocked, isSilenced: user.isSilenced || falsy, isSuspended: user.isSuspended || falsy,