Avoid problems with uid=0
This commit is contained in:
parent
fa5acb3b21
commit
bd0e2dc0a8
4 changed files with 4 additions and 4 deletions
|
@ -342,7 +342,7 @@ function ping_init(App $a)
|
|||
array_walk($notifications, function (&$notification) {
|
||||
if (empty($notification['photo'])) {
|
||||
$contact = Contact::getByURL($notification['url'], false, ['micro', 'id', 'avatar']);
|
||||
$notification['photo'] = Contact::getMicro($contact, $notif['photo']);
|
||||
$notification['photo'] = Contact::getMicro($contact, $notification['photo']);
|
||||
}
|
||||
|
||||
$notification['timestamp'] = DateTimeFormat::local($notification['date']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue