Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"
This commit is contained in:
parent
0d60f1a7d3
commit
b171fb1f24
1 changed files with 4 additions and 0 deletions
|
@ -356,6 +356,10 @@ class Item extends BaseObject
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($item['thr-parent'])) {
|
||||||
|
$item['parent-uri'] = $item['thr-parent'];
|
||||||
|
}
|
||||||
|
|
||||||
if (x($item, 'gravity')) {
|
if (x($item, 'gravity')) {
|
||||||
$item['gravity'] = intval($item['gravity']);
|
$item['gravity'] = intval($item['gravity']);
|
||||||
} elseif ($item['parent-uri'] === $item['uri']) {
|
} elseif ($item['parent-uri'] === $item['uri']) {
|
||||||
|
|
Loading…
Reference in a new issue