fix(senscritique) (#3750)

This commit is contained in:
Dag 2023-10-13 11:24:22 +02:00 committed by GitHub
parent 49d9dafaec
commit 920d00480d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 35 deletions

View file

@ -2,6 +2,13 @@
declare(strict_types=1);
/**
* Very basic and naive feed parser that srapes out rss 0.91, 1.0, 2.0 and atom 1.0.
*
* Emit arrays meant to be used inside rss-bridge.
*
* The feed item structure is identical to that of FeedItem
*/
final class FeedParser
{
public function parseFeed(string $xmlString): array
@ -200,6 +207,8 @@ final class FeedParser
'content' => null,
'timestamp' => null,
'author' => null,
'uid' => null,
'categories' => [],
'enclosures' => [],
];
if (isset($feedItem->link)) {