forked from mirrors/misskey
refactor
This commit is contained in:
@@ -481,6 +481,7 @@ export class UserEntityService implements OnModuleInit {
|
||||
|
||||
const notificationsInfo = isMe && isDetailed ? await this.getNotificationsInfo(user.id) : null;
|
||||
|
||||
// TODO: 例えば avatarUrl: true など間違った型を設定しても型エラーにならないのをどうにかする(ジェネリクス使わない方法で実装するしかなさそう?)
|
||||
const packed = {
|
||||
id: user.id,
|
||||
name: user.name,
|
||||
|
||||
@@ -65,7 +65,7 @@ export const packedUserLiteSchema = {
|
||||
avatarUrl: {
|
||||
type: 'string',
|
||||
format: 'url',
|
||||
nullable: true, optional: false,
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
avatarBlurhash: {
|
||||
type: 'string',
|
||||
|
||||
Reference in New Issue
Block a user