🐛 fix getPublicUser

This commit is contained in:
Flam3rboy
2021-05-30 22:14:35 +02:00
parent ea58f5b535
commit 711dc1c4d4
2 changed files with 5 additions and 9 deletions
@@ -75,6 +75,8 @@ router.get("/", async (req, res) => {
// @ts-ignore
delete x.user_ids;
});
// @ts-ignore
if (!x.author) x.author = { discriminator: "0000", username: "Deleted User", public_flags: 0n, avatar: null };
return x;
})