Some more places where the avatar picture is taken from the database
This commit is contained in:
parent
30056dd22d
commit
807fbe173b
2 changed files with 20 additions and 3 deletions
|
|
@ -189,7 +189,12 @@ function ping_init(&$a) {
|
|||
* 'message' => notification message. "{0}" will be replaced by subject name
|
||||
**/
|
||||
function xmlize($n){
|
||||
$n['photo'] = proxy_url($n['photo'], false, PROXY_SIZE_MICRO);
|
||||
|
||||
$contact = get_contact_details_by_url($n['url']);
|
||||
if (isset($contact["thumb"]))
|
||||
$n['photo'] = proxy_url($contact["thumb"], false, PROXY_SIZE_MICRO);
|
||||
else
|
||||
$n['photo'] = proxy_url($n['photo'], false, PROXY_SIZE_MICRO);
|
||||
|
||||
$n['message'] = html_entity_decode($n['message'], ENT_COMPAT | ENT_HTML401, "UTF-8");
|
||||
$n['name'] = html_entity_decode($n['name'], ENT_COMPAT | ENT_HTML401, "UTF-8");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue