From: Hypolite Petovan Date: Fri, 18 Dec 2020 15:37:25 +0000 (-0500) Subject: Restore Mastodon emoji span classes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95f099d26c824978536f36311f70fa5fd3e7dd35;p=friendica.git Restore Mastodon emoji span classes - Fix typo in replacement of [class] tag --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 73503cece8..d238e265ed 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -50,7 +50,7 @@ use Friendica\Util\XML; class BBCode { // Update this value to the current date whenever changes are made to BBCode::convert - const VERSION = '2020-12-06'; + const VERSION = '2020-12-18-small-emojis'; const INTERNAL = 0; const API = 2; @@ -1467,7 +1467,7 @@ class BBCode $text = preg_replace("(\[style=(.*?)\](.*?)\[\/style\])ism", '$2', $text); // Check for CSS classes - $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '$2', $text); + $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '$2', $text); // handle nested lists $endlessloop = 0;