]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Move share content conversion before link handling in Text\BBCode::convert
[friendica.git] / mod / item.php
index ad3351dd4a38e242b2ea766ad1904093e5e33670..6671d9439335e8c91be42923fd189269e5fa32d4 100644 (file)
@@ -119,7 +119,7 @@ function item_post(App $a) {
                        // The URI and the contact is taken from the direct parent which needn't to be the top parent
                        $thr_parent_uri = $toplevel_item['uri'];
 
-                       if ($toplevel_item['id'] != $toplevel_item['parent']) {
+                       if ($toplevel_item['gravity'] != GRAVITY_PARENT) {
                                $toplevel_item = Item::selectFirst([], ['id' => $toplevel_item['parent']]);
                        }
                }