add pepepoggers emoji

This commit is contained in:
Mystikfluu 2022-08-28 01:22:14 +02:00
parent 42ae9954ae
commit f432433c3c
5 changed files with 5 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -30,7 +30,7 @@ function filterMentions(text) {
const emojiregex = /:([^:\s]*):/gi
function emojify(text) {
return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt='$1' title=':$1:' width=20 height=20/>")
return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt='$1' title=':$1:' height=20/>")
}
function unemojify(text){

View File

@ -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");
}