X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fthreads.php;h=0b2b26e8d242886b870fa3595563d031c23e4f32;hb=18cbe9f6ff275cbb363fd9a0a5014bc8fe3d9f7b;hp=dddcc4cdd311df4a328322fb72bbae6959d08eca;hpb=f4173d17649afc81c14278941cd046f958818d93;p=friendica.git diff --git a/include/threads.php b/include/threads.php index dddcc4cdd3..0b2b26e8d2 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);