X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=b023b97d19ef5a014edf9192dfc5494def96a27b;hb=8eeb7807d3cf7c0490299b7540ca06f4d091217c;hp=ad3351dd4a38e242b2ea766ad1904093e5e33670;hpb=a1fc9df4ee9fe1cd48320b2ae6252ca2e2b72c0e;p=friendica.git diff --git a/mod/item.php b/mod/item.php index ad3351dd4a..b023b97d19 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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']]); } } @@ -245,7 +245,7 @@ function item_post(App $a) { $verb = $orig_post['verb']; $objecttype = $orig_post['object-type']; $app = $orig_post['app']; - $categories = $orig_post['file']; + $categories = $orig_post['file'] ?? ''; $title = Strings::escapeTags(trim($_REQUEST['title'])); $body = trim($body); $private = $orig_post['private'];