mirror of
https://github.com/friendica/friendica
synced 2024-11-20 09:03:40 +00:00
zrl on mentions
This commit is contained in:
parent
bb8beb26b4
commit
168cf3b9d4
1 changed files with 6 additions and 0 deletions
|
@ -166,6 +166,12 @@ function localize_item(&$item){
|
|||
}
|
||||
}
|
||||
}
|
||||
$matches = null;
|
||||
if(preg_match_all('/@[url=(.*?)]/is',$item['body'],$matches,PREG_SET_ORDER)) {
|
||||
foreach($matches as $mtch) {
|
||||
$item['body'] = str_replace($mtch[0],'@[url=' . zrl($mtch[1]). ']',$item['body']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue