]> git.mxchange.org Git - friendica.git/commitdiff
Restore Mastodon emoji span classes
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 18 Dec 2020 15:37:25 +0000 (10:37 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 18 Dec 2020 16:08:03 +0000 (11:08 -0500)
- Fix typo in replacement of [class] tag

src/Content/Text/BBCode.php

index 73503cece8a8e54e972eaaf200d7c12acfaa910e..d238e265eddf8bad85b564d4ebca61bf119cf84e 100644 (file)
@@ -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", '<span style="$1">$2</span>', $text);
 
                                // Check for CSS classes
-                               $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '<span style="$1">$2</span>', $text);
+                               $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '<span class="$1">$2</span>', $text);
 
                                // handle nested lists
                                $endlessloop = 0;