clean up
This commit is contained in:
parent
7157fd663c
commit
6f648fc058
|
@ -26,6 +26,7 @@ You should also include the user name that made the change.
|
||||||
- e.g. `https://p1.a9z.dev/emoji/misskey.webp`
|
- e.g. `https://p1.a9z.dev/emoji/misskey.webp`
|
||||||
- remote: `https://p1.a9z.dev/emoji/syuilo_birth_present@mk.f72u.net.webp`
|
- remote: `https://p1.a9z.dev/emoji/syuilo_birth_present@mk.f72u.net.webp`
|
||||||
- API: `user`および`note`エンティティに`emojis`プロパティが含まれなくなりました
|
- API: `user`および`note`エンティティに`emojis`プロパティが含まれなくなりました
|
||||||
|
- API: `user`エンティティに`avatarColor`および`bannerColor`プロパティが含まれなくなりました
|
||||||
|
|
||||||
### Improvements
|
### Improvements
|
||||||
- Push notification of Antenna note @tamaina
|
- Push notification of Antenna note @tamaina
|
||||||
|
|
|
@ -392,7 +392,6 @@ export class UserEntityService implements OnModuleInit {
|
||||||
host: user.host,
|
host: user.host,
|
||||||
avatarUrl: this.getAvatarUrlSync(user),
|
avatarUrl: this.getAvatarUrlSync(user),
|
||||||
avatarBlurhash: user.avatar?.blurhash ?? null,
|
avatarBlurhash: user.avatar?.blurhash ?? null,
|
||||||
avatarColor: null, // 後方互換性のため
|
|
||||||
isAdmin: user.isAdmin ?? falsy,
|
isAdmin: user.isAdmin ?? falsy,
|
||||||
isModerator: user.isModerator ?? falsy,
|
isModerator: user.isModerator ?? falsy,
|
||||||
isBot: user.isBot ?? falsy,
|
isBot: user.isBot ?? falsy,
|
||||||
|
@ -418,7 +417,6 @@ export class UserEntityService implements OnModuleInit {
|
||||||
lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null,
|
lastFetchedAt: user.lastFetchedAt ? user.lastFetchedAt.toISOString() : null,
|
||||||
bannerUrl: user.banner ? this.driveFileEntityService.getPublicUrl(user.banner, false) : null,
|
bannerUrl: user.banner ? this.driveFileEntityService.getPublicUrl(user.banner, false) : null,
|
||||||
bannerBlurhash: user.banner?.blurhash ?? null,
|
bannerBlurhash: user.banner?.blurhash ?? null,
|
||||||
bannerColor: null, // 後方互換性のため
|
|
||||||
isLocked: user.isLocked,
|
isLocked: user.isLocked,
|
||||||
isSilenced: user.isSilenced ?? falsy,
|
isSilenced: user.isSilenced ?? falsy,
|
||||||
isSuspended: user.isSuspended ?? falsy,
|
isSuspended: user.isSuspended ?? falsy,
|
||||||
|
|
|
@ -32,11 +32,6 @@ export const packedUserLiteSchema = {
|
||||||
type: 'any',
|
type: 'any',
|
||||||
nullable: true, optional: false,
|
nullable: true, optional: false,
|
||||||
},
|
},
|
||||||
avatarColor: {
|
|
||||||
type: 'any',
|
|
||||||
nullable: true, optional: false,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
isAdmin: {
|
isAdmin: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
nullable: false, optional: true,
|
nullable: false, optional: true,
|
||||||
|
@ -101,11 +96,6 @@ export const packedUserDetailedNotMeOnlySchema = {
|
||||||
type: 'any',
|
type: 'any',
|
||||||
nullable: true, optional: false,
|
nullable: true, optional: false,
|
||||||
},
|
},
|
||||||
bannerColor: {
|
|
||||||
type: 'any',
|
|
||||||
nullable: true, optional: false,
|
|
||||||
default: null,
|
|
||||||
},
|
|
||||||
isLocked: {
|
isLocked: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
nullable: false, optional: false,
|
nullable: false, optional: false,
|
||||||
|
|
Loading…
Reference in New Issue