From 8ff82a462b794be8419dc9516872ab339fc9a11a Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Thu, 30 Mar 2023 19:58:31 -0400 Subject: [PATCH] Trim whitespace in RSS messages --- libUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libUtils.js b/libUtils.js index fc40a68..5ab0531 100644 --- a/libUtils.js +++ b/libUtils.js @@ -142,7 +142,7 @@ exports.sendPost = (post, source, channel, callback) => { } //Add the main content if it's present - postContent = postContent.slice(0, 4090); + postContent = postContent.slice(0, 4090).trim(); if (postContent) rssMessage.setDescription({ postContent }) channel.send({ embeds: [rssMessage] });