- if (empty($notification['photo'])) {
- $contact = Contact::getByURL($notification['url'], false, ['micro', 'id', 'avatar']);
- $notification['photo'] = Contact::getMicro($contact, $notif['photo']);
- }
-
+ $notification['photo'] = Contact::getAvatarUrlForUrl($notification['url'], local_user(), Proxy::SIZE_MICRO);