aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-12 03:50:05 -0700
committerfriendica <info@friendica.com>2012-07-12 03:50:05 -0700
commit3f7b93ce6542219858014c4d6f075fe9b46a18e2 (patch)
tree2df86cf1fb2ff82f4484df1fe4990f5ea90ce2fc /include/conversation.php
parentbb6d8e9597b893591854645273b6ee04ee022384 (diff)
downloadvolse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.tar.gz
volse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.tar.bz2
volse-hubzilla-3f7b93ce6542219858014c4d6f075fe9b46a18e2.zip
language detection and sparkle links added to plinks where appropriate
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index ce8f5779c..25a2911e9 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -242,6 +242,16 @@ function localize_item(&$item){
}
}
+ // add sparkle links to appropriate permalinks
+
+ $x = stristr($item['plink'],'/display/');
+ if($x) {
+ $sparkle = false;
+ $y = best_link_url($item,$sparkle,true);
+ if(strstr($y,'/redir/'))
+ $item['plink'] = $y . '?f=&url=' . $item['plink'];
+ }
+
}