Add support for notification visibility settings

This commit is contained in:
Hypolite Petovan 2022-03-16 21:56:22 -04:00
parent 6818c8e69a
commit 04ac4841f9
3 changed files with 60 additions and 4 deletions

View file

@ -87,7 +87,7 @@ class Ping extends BaseModule
if (local_user()) {
if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
$notifications = $this->notificationRepo->selectForUser(local_user(), ['`vid` != ?', Verb::getID(\Friendica\Protocol\Activity::LIKE)], ['limit' => 50, 'order' => ['id' => true]]);
$notifications = $this->notificationRepo->selectDetailedForUser(local_user());
} else {
$notifications = $this->notificationRepo->selectDigestForUser(local_user());
}