From f5eb8e88f17e0f252f2d9b59410754cd18362a58 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 12 Sep 2019 22:18:46 -0400 Subject: [PATCH] Remove obsolete blockquote replacement in Item::prepareBody --- src/Model/Item.php | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 22859f76b..b5c68d9ab 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3509,37 +3509,6 @@ class Item extends BaseObject } } - - // Look for spoiler. - $spoilersearch = '
'; - - // Remove line breaks before the spoiler. - while ((strpos($s, "\n" . $spoilersearch) !== false)) { - $s = str_replace("\n" . $spoilersearch, $spoilersearch, $s); - } - while ((strpos($s, "
" . $spoilersearch) !== false)) { - $s = str_replace("
" . $spoilersearch, $spoilersearch, $s); - } - - while ((strpos($s, $spoilersearch) !== false)) { - $pos = strpos($s, $spoilersearch); - $rnd = Strings::getRandomHex(8); - $spoilerreplace = '
' . L10n::t('Click to open/close') . ''. - '