Using the correct variable if the post is empty

This commit is contained in:
Logan Cusano
2023-03-31 20:36:25 -04:00
parent 46ff0f49e8
commit 68b5e5436c

View File

@@ -89,7 +89,7 @@ exports.sendPost = (post, source, channel, callback) => {
else if (postText.length === 0) postText = `*This post has no content* [Direct Link](${post.link})`;
postContent = postText;
}
else postText = `*This post has no content* [Direct Link](${post.link})`;
else postContent = `*This post has no content* [Direct Link](${post.link})`;
// Check for embedded youtube videos and add the first four as links
const ytVideos = String(post.content).match(youtubeVideoRegex);