mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
Issue 12863: Convert Hubzilla mentions to Friendica mentions
This commit is contained in:
parent
6e94220642
commit
efb2b47dc9
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue