]> git.mxchange.org Git - friendica.git/commitdiff
Some reverted stuff
authorMichael Vogel <icarus@dabo.de>
Sun, 3 Apr 2016 14:38:32 +0000 (16:38 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 1 May 2016 11:47:24 +0000 (13:47 +0200)
include/threads.php

index 21fdb0df34000f4e0a60c49fd8ed74f7c1637371..0320eaa018e98b28a04179f79aae2b020bbd68da 100644 (file)
@@ -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));
-
+               }
        }
 }