diff --git a/bridges/CssSelectorFeedExpanderBridge.php b/bridges/CssSelectorFeedExpanderBridge.php index 7e1f630f1f9..008921b10b6 100644 --- a/bridges/CssSelectorFeedExpanderBridge.php +++ b/bridges/CssSelectorFeedExpanderBridge.php @@ -61,6 +61,10 @@ public function collectData() $discard_thumbnail = $this->getInput('discard_thumbnail'); $limit = $this->getInput('limit'); + //$xmlString = getContents($url); + //$feed = (new FeedParser())->parseFeed($xmlString); + //$items = $feed['items']; + $feed_expander = new CssSelectorFeedExpanderBridgeInternal(); $items = $feed_expander->collectExpandableDatas($url)->getItems(); diff --git a/lib/FeedExpander.php b/lib/FeedExpander.php index f9cdfa5354a..70c4560d153 100644 --- a/lib/FeedExpander.php +++ b/lib/FeedExpander.php @@ -54,6 +54,7 @@ public function collectExpandableDatas(string $url, $maxItems = -1) // Restore previous behaviour in case other code relies on it being off libxml_use_internal_errors(false); + // Currently only feed metadata (not items) are plucked out $this->parsedFeed = $this->feedParser->parseFeed($xmlString); if (isset($xml->item[0])) {