mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 08:58:49 +00:00
Added function "bb_CleanPictureLinks" ro all connectors
This commit is contained in:
parent
80f6f22852
commit
1754b58cd9
6 changed files with 15 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue