forked from friendica/friendica-addons
Merge pull request #14 from fabrixxm/master
fix 'blockem' to work with changed 'display_item' hook
This commit is contained in:
commit
e81e7f7e79
BIN
blockem.tgz
BIN
blockem.tgz
Binary file not shown.
|
@ -108,8 +108,8 @@ function blockem_prepare_body(&$a,&$b) {
|
|||
|
||||
|
||||
function blockem_display_item(&$a,&$b) {
|
||||
if(strstr($b['output'],'id="blockem-wrap-'))
|
||||
$b['output'] = preg_replace('/\<img(.*?)src=\"(.*?)\" class=\"wall\-item\-photo(.*?)\>/','<img$1src="' . $a->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";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue