From f192767d7ad1eace0a9f5e33ba8d2625782ad562 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 3 Apr 2016 16:38:32 +0200 Subject: [PATCH] Some reverted stuff --- include/threads.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/threads.php b/include/threads.php index 21fdb0df34..0320eaa018 100644 --- a/include/threads.php +++ b/include/threads.php @@ -65,19 +65,13 @@ function add_thread($itemid, $onlyshadow = false) { require_once("include/Contact.php"); unset($item[0]['id']); - unset($item[0]['shadow']); $item[0]['uid'] = 0; $item[0]['origin'] = 0; $item[0]['contact-id'] = get_contact($item[0]['author-link'], 0); $public_shadow = item_store($item[0], false, false, true); logger("add_thread: Stored public shadow for post ".$itemid." under id ".$public_shadow, LOGGER_DEBUG); - } else - $public_shadow = $r[0]["id"]; - - if ($public_shadow > 0) - q("UPDATE `item` SET `shadow` = %d WHERE `id` = %d", intval($public_shadow), intval($itemid)); - + } } } -- 2.39.5