凍結されたユーザーが含まれている場合一部の機能が誤動作する不具合を修正 (MisskeyIO#161)
z-6561
This commit is contained in:
parent
58bbff3738
commit
545ab80363
5 changed files with 20 additions and 6 deletions
|
@ -113,12 +113,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
// リクエストされた通りに並べ替え
|
||||
const _users: MiUser[] = [];
|
||||
for (const id of ps.userIds) {
|
||||
_users.push(users.find(x => x.id === id)!);
|
||||
const user = users.find((u) => u.id === id);
|
||||
if (user) _users.push(user);
|
||||
}
|
||||
|
||||
return await Promise.all(_users.map(u => this.userEntityService.pack(u, me, {
|
||||
return await this.userEntityService.packMany(_users, me, {
|
||||
detail: true,
|
||||
})));
|
||||
});
|
||||
} else {
|
||||
// Lookup user
|
||||
if (typeof ps.host === 'string' && typeof ps.username === 'string') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue