From 1e6a50ff1b4b2d002a29d8f07911b10852d83043 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 11 Mar 2023 15:54:27 -0500 Subject: [PATCH] Updating rss source to be the name of the source not link --- libUtils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libUtils.js b/libUtils.js index cc8546b..b5febb3 100644 --- a/libUtils.js +++ b/libUtils.js @@ -82,8 +82,7 @@ exports.sendPost = (post, source, channel, callback) => { const postId = post.postId; const postPubDate = new Date(post.pubDate).toISOString() ?? new Date().toISOString(); - var postSourceLink = new URL(source.link); - postSourceLink = postSourceLink.hostname; + var postSourceLink = source.title; var postImage = post.image ?? undefined; if (!postImage){