From: friendica Date: Fri, 30 Mar 2012 04:08:10 +0000 (-0700) Subject: zrl on mentions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=168cf3b9d4ca004dd589d14f4c8f31cd0d7e1265;p=friendica.git zrl on mentions --- diff --git a/include/conversation.php b/include/conversation.php index 37856651e1..6283cfe0ae 100755 --- a/include/conversation.php +++ b/include/conversation.php @@ -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']); + } + } }