There is now a user switch to change between condensed and detailled notifications

This commit is contained in:
Michael 2017-11-04 12:01:08 +00:00
parent 6b9cb9c755
commit 7de3eae8d0
5 changed files with 250 additions and 243 deletions

View file

@ -2,6 +2,7 @@
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\PConfig;
require_once('include/datetime.php');
require_once('include/bbcode.php');
@ -477,7 +478,11 @@ function ping_get_notifications($uid)
if ($notification["visible"] && !$notification["spam"] &&
!$notification["deleted"] && !is_array($result[$notification["parent"]])) {
$result[$notification["parent"]] = $notification;
if (PConfig::get(local_user(), 'system', 'detailled_notif')) {
$result[$notification["id"]] = $notification;
} else {
$result[$notification["parent"]] = $notification;
}
}
}
} while ((count($result) < 50) && !$quit);