Merge pull request #12907 from annando/issue-12863

Issue 12863: Convert Hubzilla mentions to Friendica mentions
This commit is contained in:
Hypolite Petovan 2023-03-18 07:24:12 -04:00 committed by GitHub
commit 759e76cae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,9 @@ class Processor
*/
public static function normalizeMentionLinks(string $body): string
{
return preg_replace('%\[url=([^\[\]]*)]([#@!])(.*?)\[/url]%ism', '$2[url=$1]$3[/url]', $body);
$body = preg_replace('%\[url=([^\[\]]*)]([#@!])(.*?)\[/url]%ism', '$2[url=$1]$3[/url]', $body);
$body = preg_replace('%([#@!])\[zrl=([^\[\]]*)](.*?)\[/zrl]%ism', '$1[url=$2]$3[/url]', $body);
return $body;
}
/**