Trim whitespace in RSS messages

This commit is contained in:
Logan Cusano
2023-03-30 19:58:31 -04:00
parent 1aea162b8f
commit 8ff82a462b

View File

@@ -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] });