From: Michael Date: Sat, 9 May 2020 09:38:49 +0000 (+0000) Subject: Unused variables removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=221a659abeaf3bda3cefd88c80d1b7814f168f3e;p=friendica.git Unused variables removed --- diff --git a/mod/item.php b/mod/item.php index f074111442..441997faa9 100644 --- a/mod/item.php +++ b/mod/item.php @@ -100,14 +100,9 @@ function item_post(App $a) { $toplevel_item_id = intval($_REQUEST['parent'] ?? 0); $thr_parent_uri = trim($_REQUEST['parent_uri'] ?? ''); - $thread_parent_uriid = 0; - $thread_parent_contact = null; - $toplevel_item = null; $parent_user = null; - $parent_contact = null; - $objecttype = null; $profile_uid = ($_REQUEST['profile_uid'] ?? 0) ?: local_user(); $posttype = ($_REQUEST['post_type'] ?? '') ?: Item::PT_ARTICLE; @@ -122,9 +117,7 @@ function item_post(App $a) { // if this isn't the top-level parent of the conversation, find it if (DBA::isResult($toplevel_item)) { // The URI and the contact is taken from the direct parent which needn't to be the top parent - $thread_parent_uriid = $toplevel_item['uri-id']; $thr_parent_uri = $toplevel_item['uri']; - $thread_parent_contact = Contact::getDetailsByURL($toplevel_item["author-link"]); if ($toplevel_item['id'] != $toplevel_item['parent']) { $toplevel_item = Item::selectFirst([], ['id' => $toplevel_item['parent']]);