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:
commit
c5c0887f59
|
@ -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']) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user