add: added some ui improvements

This commit is contained in:
Lukian 2025-05-12 20:48:55 +02:00
parent 8d6e1f8618
commit b707e2cead
21 changed files with 236 additions and 121 deletions

View file

@ -81,7 +81,7 @@ router.get('/:username/pfp', async (req, res) => {
const pfp = user[0].pfp;
if (!pfp || !fs.existsSync(path.join(__dirname, `../data/pfps/${pfp}`))) {
return res.sendFile(path.join(__dirname, `../images/default-pfp.png`), { headers: { 'Content-Type': 'image' } });
return res.sendFile(path.join(__dirname, `../images/default.png`), { headers: { 'Content-Type': 'image' } });
}
res.sendFile(path.join(__dirname, `../data/pfps/${pfp}`), { headers: { 'Content-Type': 'image' } });