Fix unfurl fallback img routes

This commit is contained in:
Mononaut
2023-08-23 00:11:24 +09:00
parent 063d7e96a1
commit 6946bc9da9
2 changed files with 16 additions and 7 deletions

View File

@@ -250,8 +250,8 @@ class Server {
}
if (!img) {
// proxy fallback image from the frontend
res.sendFile(nodejsPath.join(__dirname, matchedRoute.fallbackImg));
// send local fallback image file
res.sendFile(nodejsPath.join(__dirname, matchedRoute.fallbackFile));
} else {
res.contentType('image/png');
res.send(img);