Avoid problems with uid=0

This commit is contained in:
Michael 2020-11-19 17:19:14 +00:00
commit bd0e2dc0a8
4 changed files with 4 additions and 4 deletions

View file

@ -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']);