From 914a31c838e5427f614ad0860ab473ff67cffab8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 18 Aug 2023 20:13:18 -0600 Subject: [PATCH] a --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c3df577..2e5beef 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ app.post('/sms', async (req, res) => { content: out['text'], files: out['images'], username: cnam, - avatarURL: `https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500` + avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500`) }) } else { // It's an SMS data.Message = data.Message.replaceAll("+", " "); @@ -73,7 +73,7 @@ app.post('/sms', async (req, res) => { hook.send({ content: data.Message, username: cnam, - avatarURL: `https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500` + avatarURL: encodeURI(`https://tiley.herokuapp.com/avatar/${cnam}/${cnam}.png?s=500`) }) } res.send("OK");