X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fthreads.php;h=0320eaa018e98b28a04179f79aae2b020bbd68da;hb=999ef7f6793f790aefdf8a40e1b0c5cb30b9be7e;hp=c12f43bb81154c62256b9fac99a823d8ee144e84;hpb=c00772204100a44267c38f7a2533268b5dff1248;p=friendica.git diff --git a/include/threads.php b/include/threads.php index c12f43bb81..0320eaa018 100644 --- a/include/threads.php +++ b/include/threads.php @@ -1,6 +1,6 @@ $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 +143,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);