aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
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'];
+ }
+
}