X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fthreads.php;h=0320eaa018e98b28a04179f79aae2b020bbd68da;hb=ea8cfed6a931913006cefbac22bc1e91b7e71580;hp=3cfa02564036b4d38577da017a31ee48f1b243a7;hpb=2dd8db7de880794db10664965713f8a46581bd7a;p=friendica.git diff --git a/include/threads.php b/include/threads.php index 3cfa025640..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 .= ", "; @@ -143,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);