From: Fabio Comuni Date: Fri, 2 Mar 2012 10:33:07 +0000 (+0100) Subject: blockem: fix to work with changed 'display_item' hook X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c406d4d01d2e0470cb8e46cf85497740eedbc65b;p=friendica-addons.git blockem: fix to work with changed 'display_item' hook --- diff --git a/blockem.tgz b/blockem.tgz index 129a0065..ec7119f8 100755 Binary files a/blockem.tgz and b/blockem.tgz differ diff --git a/blockem/blockem.php b/blockem/blockem.php index 43f34554..9134bd0b 100755 --- a/blockem/blockem.php +++ b/blockem/blockem.php @@ -101,15 +101,15 @@ function blockem_prepare_body(&$a,&$b) { } } if($found) { - $rnd = random_string(8); + $rnd = random_string(8); $b['html'] = ''; } } function blockem_display_item(&$a,&$b) { - if(strstr($b['output'],'id="blockem-wrap-')) - $b['output'] = preg_replace('/\/','get_baseurl() . "/images/default-profile-sm.jpg" . '" class="wall-item-photo$3>',$b['output']); + if(strstr($b['output']['body'],'id="blockem-wrap-')) + $b['output']['thumb'] = $a->get_baseurl() . "/images/default-profile-sm.jpg"; } @@ -193,4 +193,4 @@ function blockem_init(&$a) { set_pconfig(local_user(),'blockem','words',$words); info( t('blockem settings updated') . EOL ); killme(); -} \ No newline at end of file +}