Reliably diasplay "like" and "share" notifications

This commit is contained in:
Michael 2021-08-23 15:07:14 +00:00
parent e7f25f2bee
commit c78b7f45c5
3 changed files with 23 additions and 8 deletions

View file

@ -462,10 +462,10 @@ function ping_get_notifications($uid)
&& empty($result[$notification['parent']])
) {
// Should we condense the notifications or show them all?
if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
$result[$notification["id"]] = $notification;
if (($notification['verb'] != Activity::POST) || DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
$result[] = $notification;
} else {
$result[$notification['parent']] = $notification;
$result['p:' . $notification['parent']] = $notification;
}
}
}