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
1 changed files with 0 additions and 5 deletions

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 == ''