Merge pull request #4649 from annando/fix-thr-parent

Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"
This commit is contained in:
Hypolite Petovan 2018-03-22 12:24:37 -04:00 committed by GitHub
commit c5c0887f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,6 +356,10 @@ class Item extends BaseObject
}
}
if (!empty($item['thr-parent'])) {
$item['parent-uri'] = $item['thr-parent'];
}
if (x($item, 'gravity')) {
$item['gravity'] = intval($item['gravity']);
} elseif ($item['parent-uri'] === $item['uri']) {