mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
add some sparkle to plinks
This commit is contained in:
parent
24ea480276
commit
085b589468
9 changed files with 21 additions and 11 deletions
|
@ -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'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue