aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-29 21:08:10 -0700
committerfriendica <info@friendica.com>2012-03-29 21:08:10 -0700
commit168cf3b9d4ca004dd589d14f4c8f31cd0d7e1265 (patch)
tree22e3a3c12392de7c01d659658d91bb4f861a370b /include/conversation.php
parentbb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e (diff)
downloadvolse-hubzilla-168cf3b9d4ca004dd589d14f4c8f31cd0d7e1265.tar.gz
volse-hubzilla-168cf3b9d4ca004dd589d14f4c8f31cd0d7e1265.tar.bz2
volse-hubzilla-168cf3b9d4ca004dd589d14f4c8f31cd0d7e1265.zip
zrl on mentions
Diffstat (limited to 'include/conversation.php')
-rwxr-xr-xinclude/conversation.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 37856651e..6283cfe0a 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']);
+ }
+ }
}