Compare commits
No commits in common. "3d853a32824fc216e935c9f22398816d5645e662" and "70fc42b181be16e1c272f8fe2e7f1733871ed142" have entirely different histories.
3d853a3282
...
70fc42b181
3 changed files with 11 additions and 2 deletions
|
|
@ -360,7 +360,7 @@ userSchema.statics.findProfile = async function(user, includeEmail = false){
|
||||||
date: statModel.firstLaunch,
|
date: statModel.firstLaunch,
|
||||||
tokes: tokeModel.tokeMap,
|
tokes: tokeModel.tokeMap,
|
||||||
tokeCount: tokeModel.count,
|
tokeCount: tokeModel.count,
|
||||||
img: "/nonfree/img/emotes/tokebot.jpg",
|
img: "/nonfree/johnny.png",
|
||||||
signature: "!TOKE",
|
signature: "!TOKE",
|
||||||
bio: "!TOKE OR DIE!"
|
bio: "!TOKE OR DIE!"
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,15 @@ module.exports.cache = new Map();
|
||||||
module.exports.markLink = async function(dirtyLink){
|
module.exports.markLink = async function(dirtyLink){
|
||||||
const link = sanitizeUrl(dirtyLink);
|
const link = sanitizeUrl(dirtyLink);
|
||||||
|
|
||||||
|
//If this link is referencing this web server
|
||||||
|
if(link.match(new RegExp(`^${config.protocol}://${config.domain}`)) != null){
|
||||||
|
//Lazily return it as a good link, since we know it'll at least return a good 404 page XP
|
||||||
|
return {
|
||||||
|
link,
|
||||||
|
type: "link"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Check link cache for the requested link
|
//Check link cache for the requested link
|
||||||
const cachedLink = module.exports.cache.get(link);
|
const cachedLink = module.exports.cache.get(link);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9d978b45e11e9ab8dd03dd24d3876d8c33eb480c
|
Subproject commit 8f3f78be454a156aa7b6a9a811cd656cf4bd80b2
|
||||||
Loading…
Add table
Add a link
Reference in a new issue