kopia lustrzana https://github.com/friendica/friendica
Merge pull request #5699 from annando/issue-5691
Issue 5691: Post dates of feeds sometimes had been wrongpull/5701/head
commit
dfbac99aa6
|
@ -271,9 +271,14 @@ class Feed {
|
|||
}
|
||||
$updated = XML::getFirstNodeValue($xpath, 'atom:updated/text()', $entry);
|
||||
|
||||
if (empty($updated)) {
|
||||
if (empty($updated) && !empty($published)) {
|
||||
$updated = $published;
|
||||
}
|
||||
|
||||
if (empty($published) && !empty($updated)) {
|
||||
$published = $updated;
|
||||
}
|
||||
|
||||
if ($published != "") {
|
||||
$item["created"] = $published;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue