Updating rss source to be the name of the source not link
This commit is contained in:
@@ -82,8 +82,7 @@ exports.sendPost = (post, source, channel, callback) => {
|
|||||||
|
|
||||||
const postId = post.postId;
|
const postId = post.postId;
|
||||||
const postPubDate = new Date(post.pubDate).toISOString() ?? new Date().toISOString();
|
const postPubDate = new Date(post.pubDate).toISOString() ?? new Date().toISOString();
|
||||||
var postSourceLink = new URL(source.link);
|
var postSourceLink = source.title;
|
||||||
postSourceLink = postSourceLink.hostname;
|
|
||||||
var postImage = post.image ?? undefined;
|
var postImage = post.image ?? undefined;
|
||||||
|
|
||||||
if (!postImage){
|
if (!postImage){
|
||||||
|
|||||||
Reference in New Issue
Block a user