From 68b5e5436cad11c667a0cb8c5cb7e58fc6dfac9d Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 31 Mar 2023 20:36:25 -0400 Subject: [PATCH] Using the correct variable if the post is empty --- libUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libUtils.js b/libUtils.js index 60226a6..cf66afa 100644 --- a/libUtils.js +++ b/libUtils.js @@ -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);