]> git.mxchange.org Git - friendica.git/commitdiff
Add RTL support for display names in mentions
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:32:17 +0000 (15:32 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 1 May 2021 19:32:17 +0000 (15:32 -0400)
src/Content/Text/BBCode.php

index 48fda6296c268d245f10240f094b0b7cf0fa1433..b03100fc9dd5a533809f900127124c73ea35ba2a 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 = '2021-04-24';
+       const VERSION = '2021-05-01';
 
        const INTERNAL = 0;
        const API = 2;
@@ -1731,7 +1731,7 @@ class BBCode
                                                $text);
                                } elseif (!$simple_html) {
                                        $text = preg_replace("/([@!])\[url\=(.*?)\](.*?)\[\/url\]/ism",
-                                               '$1<a href="$2" class="userinfo mention" title="$3">$3</a>',
+                                               '$1<a href="$2" class="userinfo mention" title="$3"><bdi>$3</bdi></a>',
                                                $text);
                                }