Trim whitespace in RSS messages
This commit is contained in:
@@ -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] });
|
||||
|
||||
Reference in New Issue
Block a user