Merge pull request #13101 from annando/fix-feeds

Fix: Feeds had been imported with the wrong body
This commit is contained in:
Hypolite Petovan 2023-05-07 02:25:32 -04:00 committed by GitHub
commit 675e5af2fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,6 +309,7 @@ class Feed
$entry = $entries->item($i); $entry = $entries->item($i);
$item = array_merge($header, $author); $item = array_merge($header, $author);
$body = '';
$alternate = XML::getFirstAttributes($xpath, $atomns . ":link[@rel='alternate']", $entry); $alternate = XML::getFirstAttributes($xpath, $atomns . ":link[@rel='alternate']", $entry);
if (!is_object($alternate)) { if (!is_object($alternate)) {