]> git.mxchange.org Git - friendica.git/commitdiff
Restore autolink in share block content in BBCode::convertShare
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 22 Dec 2020 03:46:29 +0000 (22:46 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 22 Dec 2020 03:46:29 +0000 (22:46 -0500)
src/Content/Text/BBCode.php

index dd62c5d84140772f44d1570ec51f2c407e46e30a..ea818d7f31c2511fd36d8f5f393d9f122bf137c9 100644 (file)
@@ -1008,7 +1008,9 @@ class BBCode
                                        $attributes['avatar'] = ProxyUtils::proxifyUrl($attributes['avatar'], false, ProxyUtils::SIZE_THUMB);
                                }
 
-                               return $match[1] . $callback($attributes, $author_contact, $match[3], trim($match[1]) != '');
+                               $content = preg_replace(Strings::autoLinkRegEx(), '<a href="$1">$1</a>', $match[3]);
+
+                               return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != '');
                        },
                        $text
                );