Merge pull request #2923 from rabuzarus/1611_fix_NotificationsManager_unseen

Bugfix: avatar images for activty like was not shown on notifications page
This commit is contained in:
Tobias Diekershoff 2016-11-16 14:09:18 +01:00 committed by GitHub
commit 1f9469b5e3

View file

@ -252,7 +252,7 @@ class NotificationsManager {
$notif = array( $notif = array(
'label' => 'like', 'label' => 'like',
'link' => $this->a->get_baseurl(true).'/display/'.$it['pguid'], 'link' => $this->a->get_baseurl(true).'/display/'.$it['pguid'],
'$image' => proxy_url($it['author-avatar'], false, PROXY_SIZE_MICRO), 'image' => proxy_url($it['author-avatar'], false, PROXY_SIZE_MICRO),
'text' => sprintf(t("%s liked %s's post"), $it['author-name'], $it['pname']), 'text' => sprintf(t("%s liked %s's post"), $it['author-name'], $it['pname']),
'when' => relative_date($it['created']), 'when' => relative_date($it['created']),
'seen' => $it['seen'] 'seen' => $it['seen']