]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"
authorMichael <heluecht@pirati.ca>
Thu, 22 Mar 2018 16:18:49 +0000 (16:18 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 22 Mar 2018 16:18:49 +0000 (16:18 +0000)
src/Model/Item.php

index 292301a4e96c32485d65e240379288d98de93339..efcf05ad6afc9ad2ca2a275f2d91d1e3df657786 100644 (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']) {