add pepepoggers emoji
This commit is contained in:
parent
42ae9954ae
commit
f432433c3c
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 |
BIN
images/emoji/pepepoggers.png
Normal file
BIN
images/emoji/pepepoggers.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
@ -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){
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user