Fix internal error in api/pinned-users if one or more name fails to resolve

This commit is contained in:
yumeko 2024-04-17 18:19:17 +00:00 committed by naskya
parent 86f2e32c66
commit a411f4e4d9

View file

@ -45,7 +45,7 @@ export default define(meta, paramDef, async (ps, me) => {
);
return await Users.packMany(
users.filter((x) => x !== undefined) as User[],
users.filter((x) => (x != null)) as User[],
me,
{ detail: true },
);