mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Add some analysing stuff, rendered value is written now more often
This commit is contained in:
parent
9b5c6ed580
commit
c4ba035ee3
7 changed files with 52 additions and 15 deletions
|
@ -315,11 +315,11 @@ function localize_item(&$item){
|
|||
}
|
||||
|
||||
// add zrl's to public images
|
||||
$photo_pattern = "/\[url=(.*?)\/photos\/(.*?)\/image\/(.*?)\]\[img(.*?)\]h(.*?)\[\/img\]\[\/url\]/is";
|
||||
if(preg_match($photo_pattern,$item['body'])) {
|
||||
$photo_replace = '[url=' . zrl('$1' . '/photos/' . '$2' . '/image/' . '$3' ,true) . '][img' . '$4' . ']h' . '$5' . '[/img][/url]';
|
||||
$item['body'] = bb_tag_preg_replace($photo_pattern, $photo_replace, 'url', $item['body']);
|
||||
}
|
||||
// $photo_pattern = "/\[url=(.*?)\/photos\/(.*?)\/image\/(.*?)\]\[img(.*?)\]h(.*?)\[\/img\]\[\/url\]/is";
|
||||
// if(preg_match($photo_pattern,$item['body'])) {
|
||||
// $photo_replace = '[url=' . zrl('$1' . '/photos/' . '$2' . '/image/' . '$3' ,true) . '][img' . '$4' . ']h' . '$5' . '[/img][/url]';
|
||||
// $item['body'] = bb_tag_preg_replace($photo_pattern, $photo_replace, 'url', $item['body']);
|
||||
// }
|
||||
|
||||
// add sparkle links to appropriate permalinks
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue