]> git.mxchange.org Git - friendica.git/blobdiff - include/threads.php
The function "construct_acl_data" isn't used at all, it seems. it is deactivated now
[friendica.git] / include / threads.php
index 66622e8746c6c40cefee9fe732d1857a22f480f2..b0ba54684062022b0a28c7b05e88003cc0455cfc 100644 (file)
@@ -245,9 +245,7 @@ function delete_thread($itemid, $itemuri = "") {
                                intval($item["uid"])
                        );
                if (!dbm::is_result($r)) {
-                       $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0",
-                               dbesc($itemuri)
-                       );
+                       dba::delete('item', array('uri' => $itemuri, 'uid' => 0));
                        logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG);
                }
        }