Remove content warning processing in put_item_in_cache
This commit is contained in:
parent
180f7d8218
commit
bec46d7b01
|
@ -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 == ''
|
||||
|
|
Loading…
Reference in a new issue