aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/controllers/lazy-static.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/lazy-static.ts b/server/controllers/lazy-static.ts
index 28d2f862a..1ff99e90c 100644
--- a/server/controllers/lazy-static.ts
+++ b/server/controllers/lazy-static.ts
@@ -44,6 +44,8 @@ async function getAvatar (req: express.Request, res: express.Response) {
44 } 44 }
45 45
46 const avatar = await AvatarModel.loadByName(filename) 46 const avatar = await AvatarModel.loadByName(filename)
47 if (!avatar) return res.sendStatus(404)
48
47 if (avatar.onDisk === false) { 49 if (avatar.onDisk === false) {
48 if (!avatar.fileUrl) return res.sendStatus(404) 50 if (!avatar.fileUrl) return res.sendStatus(404)
49 51