Added function "bb_CleanPictureLinks" ro all connectors

This commit is contained in:
Michael Vogel 2014-03-02 01:42:19 +01:00
parent 80f6f22852
commit 1754b58cd9
6 changed files with 15 additions and 4 deletions

View file

@ -288,6 +288,8 @@ function appnetpost_feeditem($pid, $uid) {
$items = q("SELECT `uri`, `plink`, `author-link`, `author-name`, `created`, `edited`, `id`, `title`, `body` from `item` WHERE id=%d", intval($pid));
foreach ($items AS $item) {
$item['body'] = bb_CleanPictureLinks($item['body']);
// Looking for the first image
$image = '';
if(preg_match("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/is",$item['body'],$matches))