aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-12 16:52:01 -0700
committerfriendica <info@friendica.com>2012-07-12 16:53:42 -0700
commit599f3d29610b2cc509ab51df0f42d154dd70278d (patch)
tree89f882967772931e73418f5f6ef69ba634d4fbf0 /include/conversation.php
parent3f7b93ce6542219858014c4d6f075fe9b46a18e2 (diff)
downloadvolse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.tar.gz
volse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.tar.bz2
volse-hubzilla-599f3d29610b2cc509ab51df0f42d154dd70278d.zip
add plink to profile change notifications
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 25a2911e9..f348e56a2 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -235,6 +235,7 @@ function localize_item(&$item){
$item['body'] = str_replace($mtch[0],'@[url=' . zrl($mtch[1]). ']',$item['body']);
}
}
+
// add zrl's to public images
if(preg_match_all('/\[url=(.*?)\/photos\/(.*?)\/image\/(.*?)\]\[img(.*?)\]h(.*?)\[\/img\]\[\/url\]/is',$item['body'],$matches,PREG_SET_ORDER)) {
foreach($matches as $mtch) {
@@ -248,11 +249,9 @@ function localize_item(&$item){
if($x) {
$sparkle = false;
$y = best_link_url($item,$sparkle,true);
- if(strstr($y,'/redir/'))
+ if($sparkle)
$item['plink'] = $y . '?f=&url=' . $item['plink'];
}
-
-
}
/**