This commit is contained in:
Logan Cusano
2023-03-10 23:14:16 -05:00
parent d19ccd046a
commit 6cccc86d90
3 changed files with 35 additions and 4 deletions

View File

@@ -103,7 +103,8 @@ exports.updateFeeds = async (client) => {
try{
log.DEBUG("Parsed Feed Keys", Object.keys(parsedFeed), parsedFeed?.title);
if (parsedFeed?.items){
for (const post of parsedFeed.items){
for (const post of parsedFeed.items){
log.DEBUG("Parsed Source Keys", Object.keys(post), post?.title);
//log.VERBOSE("Post from feed: ", post);
if (post.title && post.link && post.content && ( post.postId || post.guid || post.id ) && post.pubDate){
post.postId = post.postId ?? post.guid ?? post.id;