From 6f648fc058640d49952a72685bbfad9e6e591c58 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 31 Dec 2022 08:51:35 +0900 Subject: [PATCH] clean up --- CHANGELOG.md | 1 + .../backend/src/core/entities/UserEntityService.ts | 2 -- packages/backend/src/models/schema/user.ts | 10 ---------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26ff198ebd..550a5fcf95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ You should also include the user name that made the change. - e.g. `https://p1.a9z.dev/emoji/misskey.webp` - remote: `https://p1.a9z.dev/emoji/syuilo_birth_present@mk.f72u.net.webp` - API: `user`および`note`エンティティに`emojis`プロパティが含まれなくなりました +- API: `user`エンティティに`avatarColor`および`bannerColor`プロパティが含まれなくなりました ### Improvements - Push notification of Antenna note @tamaina diff --git a/packages/backend/src/core/entities/UserEntityService.ts b/packages/backend/src/core/entities/UserEntityService.ts index 3f75755496..a123746220 100644 --- a/packages/backend/src/core/entities/UserEntityService.ts +++ b/packages/backend/src/core/entities/UserEntityService.ts @@ -392,7 +392,6 @@ export class UserEntityService implements OnModuleInit { 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, @@ -418,7 +417,6 @@ export class UserEntityService implements OnModuleInit { lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null, bannerUrl: user.banner ? this.driveFileEntityService.getPublicUrl(user.banner, false) : null, bannerBlurhash: user.banner?.blurhash ?? null, - bannerColor: null, // 後方互換性のため isLocked: user.isLocked, isSilenced: user.isSilenced ?? falsy, isSuspended: user.isSuspended ?? falsy, diff --git a/packages/backend/src/models/schema/user.ts b/packages/backend/src/models/schema/user.ts index dd549ad0d1..aac5e9332c 100644 --- a/packages/backend/src/models/schema/user.ts +++ b/packages/backend/src/models/schema/user.ts @@ -32,11 +32,6 @@ export const packedUserLiteSchema = { type: 'any', nullable: true, optional: false, }, - avatarColor: { - type: 'any', - nullable: true, optional: false, - default: null, - }, isAdmin: { type: 'boolean', nullable: false, optional: true, @@ -101,11 +96,6 @@ export const packedUserDetailedNotMeOnlySchema = { type: 'any', nullable: true, optional: false, }, - bannerColor: { - type: 'any', - nullable: true, optional: false, - default: null, - }, isLocked: { type: 'boolean', nullable: false, optional: false,