Merge pull request #4014 from koskimiesl/react-rss-reader-fix

This commit is contained in:
Hugo Bernier 2023-08-26 13:26:07 -04:00 committed by GitHub
commit 7e53857b88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -37,6 +37,8 @@ Main features include:
![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg)
![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg)
Tested with: Node.js v10.16.3
## Applies to
* [SharePoint Framework](https://learn.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview)
@ -44,9 +46,10 @@ Main features include:
## Contributors
* [Eric Overfield](https://github.com/eoverfield)
* [Abderahman Moujahid](https://github.com/Abderahman88)
* [Eric Overfield](https://github.com/eoverfield)
* [Kalle Mansikkaniemi](https://github.com/djsladi)
* [Lauri Koskimies](https://github.com/koskimiesl)
## Version history

View File

@ -9,7 +9,7 @@
"A RSS Reader original based on work completed by Olivier Carpentier\u0027s"
],
"creationDateTime": "2020-11-22",
"updateDateTime": "2023-05-23",
"updateDateTime": "2023-08-18",
"products": [
"SharePoint"
],

View File

@ -161,7 +161,7 @@ export class RssXmlParserService {
public static buildRSS2(xmlObj) {
let channel:any = Array.isArray(xmlObj.rss.channel) ? xmlObj.rss.channel[0] : xmlObj.rss.channel;
let items = channel.item;
let items = Array.isArray(channel.item) ? channel.item : [channel.item];
let feed = this.buildRSS(channel, items);
if (xmlObj.rss.$ && xmlObj.rss.$['xmlns:itunes']) {
this.decorateItunes(feed, channel);