From 4b1180ec8b40cf0ee19169a5019ec0eb7ff1a4ba Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 21 Dec 2020 22:46:29 -0500 Subject: [PATCH] Restore autolink in share block content in BBCode::convertShare --- src/Content/Text/BBCode.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index dd62c5d841..ea818d7f31 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -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(), '$1', $match[3]); + + return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != ''); }, $text );