From 001945a284920680f4740ad0b3f295c8adf62317 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Wed, 5 Nov 2025 18:46:51 -0500 Subject: [PATCH 1/3] Whoops... --- src/schemas/tokebot/tokeCommandSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemas/tokebot/tokeCommandSchema.js b/src/schemas/tokebot/tokeCommandSchema.js index 19283f8..635f487 100644 --- a/src/schemas/tokebot/tokeCommandSchema.js +++ b/src/schemas/tokebot/tokeCommandSchema.js @@ -40,7 +40,7 @@ tokeCommandSchema.pre('save', async function (next){ if(this.isModified("command")){ if(server.channelManager != null && server.channelManager.chatHandler != null && - server.channelManager.chatHandler.chatPreprocessor == null){ + server.channelManager.chatHandler.chatPreprocessor != null){ //Get server tokebot object const tokebot = server.channelManager.chatHandler.chatPreprocessor.tokebot; From aa8658a06f90de93194572e768c166999c48c7fd Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Thu, 2 Jul 2026 23:52:57 -0400 Subject: [PATCH 2/3] Adding emote images from legacy fore.st instance --- src/schemas/user/userSchema.js | 2 +- www/nonfree | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schemas/user/userSchema.js b/src/schemas/user/userSchema.js index 783b241..a398d49 100644 --- a/src/schemas/user/userSchema.js +++ b/src/schemas/user/userSchema.js @@ -360,7 +360,7 @@ userSchema.statics.findProfile = async function(user, includeEmail = false){ date: statModel.firstLaunch, tokes: tokeModel.tokeMap, tokeCount: tokeModel.count, - img: "/nonfree/johnny.png", + img: "/nonfree/img/emotes/tokebot.jpg", signature: "!TOKE", bio: "!TOKE OR DIE!" }; diff --git a/www/nonfree b/www/nonfree index 8f3f78b..9d978b4 160000 --- a/www/nonfree +++ b/www/nonfree @@ -1 +1 @@ -Subproject commit 8f3f78be454a156aa7b6a9a811cd656cf4bd80b2 +Subproject commit 9d978b45e11e9ab8dd03dd24d3876d8c33eb480c From 96a6f5c0d20ea3d66fec1a68ed863792ad44156b Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Fri, 3 Jul 2026 01:54:55 -0400 Subject: [PATCH 3/3] Removed a lazy hack thats no longer needed due to an improved server-side config --- README.md | 2 +- package.json | 4 ++-- src/utils/linkUtils.js | 9 --------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a61d209..f7fd6b2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Canopy -0.1-Alpha (Panama Red) - Hotfix 3 +0.1-Alpha (Panama Red) - Hotfix 4 ========= Canopy - /ˈkæ.nə.pi/: diff --git a/package.json b/package.json index 54af4f0..8d3c69d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "canopy-of-alpha", - "version": "0.1.3", - "canopyDisplayVersion": "0.1-Alpha (Panama Red) - Hotfix 3", + "version": "0.1.4", + "canopyDisplayVersion": "0.1-Alpha (Panama Red) - Hotfix 4", "license": "AGPL-3.0-only", "dependencies": { "@braintree/sanitize-url": "^7.1.1", diff --git a/src/utils/linkUtils.js b/src/utils/linkUtils.js index 76b8e45..e7149cd 100644 --- a/src/utils/linkUtils.js +++ b/src/utils/linkUtils.js @@ -35,15 +35,6 @@ module.exports.cache = new Map(); module.exports.markLink = async function(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 const cachedLink = module.exports.cache.get(link);