]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong display of mentions in RTL context
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 May 2021 11:43:12 +0000 (07:43 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 20 May 2021 12:39:36 +0000 (08:39 -0400)
src/Content/Text/BBCode.php

index 32cd818cac690c29364802f70bc7df59dc9008d7..8c1476fa35d2990bf13a91fd0e0c805c88475a3a 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-05-01';
+       const VERSION = '2021-05-21';
 
        const INTERNAL = 0;
        const EXTERNAL = 1;
@@ -1721,7 +1721,7 @@ class BBCode
                                                $text);
                                } elseif (!$simple_html) {
                                        $text = preg_replace("/([@!])\[url\=(.*?)\](.*?)\[\/url\]/ism",
-                                               '$1<a href="$2" class="userinfo mention" title="$3"><bdi>$3</bdi></a>',
+                                               '<bdi>$1<a href="$2" class="userinfo mention" title="$3">$3</a></bdi>',
                                                $text);
                                }