mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
There is now a user switch to change between condensed and detailled notifications
This commit is contained in:
parent
6b9cb9c755
commit
7de3eae8d0
5 changed files with 250 additions and 243 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue