Merge pull request #1199 from ThomasMirlacher/develop

Add dc:date to parsing in newsfeed module, which allows parsing of mo…
This commit is contained in:
Michael Teeuw 2018-03-21 12:17:23 +01:00 committed by GitHub
commit 79d40d5644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- News article in fullscreen (iframe) is now shown in front of modules. - News article in fullscreen (iframe) is now shown in front of modules.
- Add dc:date to parsing in newsfeed module, which allows parsing of more rss feeds.
*This release is scheduled to be released on 2018-04-01.* *This release is scheduled to be released on 2018-04-01.*

View File

@ -45,7 +45,7 @@ var Fetcher = function(url, reloadInterval, encoding) {
var title = item.title; var title = item.title;
var description = item.description || item.summary || item.content || ""; var description = item.description || item.summary || item.content || "";
var pubdate = item.pubdate || item.published || item.updated; var pubdate = item.pubdate || item.published || item.updated || item["dc:date"];
var url = item.url || item.link || ""; var url = item.url || item.link || "";
if (title && pubdate) { if (title && pubdate) {