From f46b226940159429bbb2549cdfda42d076d8e4c3 Mon Sep 17 00:00:00 2001 From: Karsten Hassel Date: Fri, 20 Oct 2023 06:41:31 +0200 Subject: [PATCH] fix newsfeed module for feeds using "a10:updated" tag (#3242) solves #3238 --- CHANGELOG.md | 1 + modules/default/newsfeed/newsfeedfetcher.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50ba147c95..298825f02d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ _This release is scheduled to be released on 2024-01-01._ - Fix the option eventClass on customEvents. - Fix yr API version in locationforecast call (#3227) - Fix cloneObject() function to respect RegExp (#3237) +- Fix newsfeed module for feeds using "a10:updated" tag (#3238) ## [2.25.0] - 2023-10-01 diff --git a/modules/default/newsfeed/newsfeedfetcher.js b/modules/default/newsfeed/newsfeedfetcher.js index a0d871fac5..0f1b5d6c6d 100644 --- a/modules/default/newsfeed/newsfeedfetcher.js +++ b/modules/default/newsfeed/newsfeedfetcher.js @@ -48,7 +48,7 @@ const NewsfeedFetcher = function (url, reloadInterval, encoding, logFeedWarnings parser.on("item", (item) => { const title = item.title; let description = item.description || item.summary || item.content || ""; - const pubdate = item.pubdate || item.published || item.updated || item["dc:date"]; + const pubdate = item.pubdate || item.published || item.updated || item["dc:date"] || item["a10:updated"]; const url = item.url || item.link || ""; if (title && pubdate) {