From: Hypolite Petovan <hypolite@mrpetovan.com>
Date: Tue, 22 Dec 2020 03:46:29 +0000 (-0500)
Subject: Restore autolink in share block content in BBCode::convertShare
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4b1180ec8b40cf0ee19169a5019ec0eb7ff1a4ba;p=friendica.git

Restore autolink in share block content in BBCode::convertShare
---

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(), '<a href="$1">$1</a>', $match[3]);
+
+				return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != '');
 			},
 			$text
 		);