Remove content warning processing in put_item_in_cache

This commit is contained in:
Hypolite Petovan 2018-04-01 02:23:56 -04:00
parent 180f7d8218
commit bec46d7b01

View file

@ -1183,11 +1183,6 @@ function put_item_in_cache(&$item, $update = false)
{
$body = $item["body"];
// Add the content warning
if (!empty($item['content-warning'])) {
$item["body"] = $item['content-warning'] . '[spoiler]' . $item["body"] . '[/spoiler]';
}
$rendered_hash = defaults($item, 'rendered-hash', '');
if ($rendered_hash == ''