add some sparkle to plinks

This commit is contained in:
friendica 2012-07-11 21:04:08 -07:00
parent 24ea480276
commit 085b589468
9 changed files with 21 additions and 11 deletions

View file

@ -73,7 +73,6 @@ function item_redir_and_replace_images($body, $images, $cid) {
$newbody = str_replace('[!#saved_image' . $cnt . '#!]', '[img]' . $image . '[/img]', $newbody);
$cnt++;
}
return $newbody;
}}
@ -242,6 +241,17 @@ 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'];
}
}