From bec46d7b01729c5a393bc61465037041aab3f8a6 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 1 Apr 2018 02:23:56 -0400 Subject: [PATCH] Remove content warning processing in put_item_in_cache --- include/text.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/text.php b/include/text.php index 311422c575..f08baaf63f 100644 --- a/include/text.php +++ b/include/text.php @@ -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 == '' -- 2.39.5