diff --git a/images/emoji/eyes.png b/images/emoji/eyes.png index 77c633f..12cf975 100644 Binary files a/images/emoji/eyes.png and b/images/emoji/eyes.png differ diff --git a/images/emoji/moyai.png b/images/emoji/moyai.png index 350e25e..71b14f1 100644 Binary files a/images/emoji/moyai.png and b/images/emoji/moyai.png differ diff --git a/images/emoji/pepepoggers.png b/images/emoji/pepepoggers.png new file mode 100644 index 0000000..559e222 Binary files /dev/null and b/images/emoji/pepepoggers.png differ diff --git a/js/markdown.js b/js/markdown.js index 500079a..5feb5ff 100644 --- a/js/markdown.js +++ b/js/markdown.js @@ -30,7 +30,7 @@ function filterMentions(text) { const emojiregex = /:([^:\s]*):/gi function emojify(text) { - return text.replace(emojiregex,"$1") + return text.replace(emojiregex,"$1") } function unemojify(text){ diff --git a/server.js b/server.js index 7c578ce..701b7f4 100644 --- a/server.js +++ b/server.js @@ -791,6 +791,10 @@ router.get("/images/*", (request, response) => { response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish response.sendFile(__dirname + request.originalUrl); } + else if(existsSync(__dirname + request.originalUrl.toLowerCase())){ + response.set('Cache-Control', 'public, max-age=2592000'); //cache it for one month-ish + response.sendFile(__dirname + request.originalUrl); + } else { response.status(404).send("no file with that name found"); }