mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-19 00:03:42 +00:00
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: blockem: fix to work with changed 'display_item' hook * master:
This commit is contained in:
commit
472a019922
2 changed files with 4 additions and 4 deletions
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) {
|
function blockem_display_item(&$a,&$b) {
|
||||||
if(strstr($b['output'],'id="blockem-wrap-'))
|
if(strstr($b['output']['body'],'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']);
|
$b['output']['thumb'] = $a->get_baseurl() . "/images/default-profile-sm.jpg";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue