Restore autolink in share block content in BBCode::convertShare

This commit is contained in:
Hypolite Petovan 2020-12-21 22:46:29 -05:00
parent 190c41e64f
commit 4b1180ec8b

View 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
);