X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fthreads.php;h=2e02e7ada3290ae0ecb690cad1d6ca912e307379;hb=6601e8c2b74f0ebd4e224713e7feadbe9b09d330;hp=dddcc4cdd311df4a328322fb72bbae6959d08eca;hpb=01c2eacd4624a3305c9a4a68ce3aa57f23abf11c;p=friendica.git diff --git a/include/threads.php b/include/threads.php index dddcc4cdd3..2e02e7ada3 100644 --- a/include/threads.php +++ b/include/threads.php @@ -1,7 +1,9 @@ $data) - if (!in_array($field, array("guid", "title", "body"))) { + if (!in_array($field, array("guid", "title", "body", "rendered-html", "rendered-hash"))) { if ($sql != "") $sql .= ", "; @@ -142,9 +145,11 @@ function update_thread($itemid, $setmention = false) { if (!$items) return; - $result = q("UPDATE `item` SET `title` = '%s', `body` = '%s' WHERE `id` = %d", + $result = q("UPDATE `item` SET `title` = '%s', `body` = '%s', `rendered-html` = '%s', `rendered-hash` = '%s' WHERE `id` = %d", dbesc($item["title"]), dbesc($item["body"]), + dbesc($item["rendered-html"]), + dbesc($item["rendered-hash"]), intval($items[0]["id"]) ); logger("Updating public shadow for post ".$items[0]["id"]." - guid ".$item["guid"]." Result: ".print_r($result, true), LOGGER_DEBUG); @@ -171,7 +176,7 @@ function delete_thread($itemid, $itemuri = "") { intval($item["uid"]) ); if (!count($r)) { - $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0)", + $r = q("DELETE FROM `item` WHERE `uri` = '%s' AND `uid` = 0", dbesc($itemuri) ); logger("delete_thread: Deleted shadow for item ".$itemuri." - ".print_r($result, true), LOGGER_DEBUG);