From: Hypolite Petovan Date: Fri, 13 Sep 2019 02:18:46 +0000 (-0400) Subject: Remove obsolete blockquote replacement in Item::prepareBody X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5eb8e88f17e0f252f2d9b59410754cd18362a58;p=friendica.git Remove obsolete blockquote replacement in Item::prepareBody --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 22859f76b4..b5c68d9ab7 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') . ''. - '