1
0
Fork 0

Suppress notifications for forum users in Module\Notifications\Ping

- The bell icon is already hidden for them but the notification number showed in the page title
This commit is contained in:
Hypolite Petovan 2022-12-14 22:01:14 -05:00
parent c76795f0f8
commit 2d624e900d

View file

@ -116,8 +116,8 @@ class Ping extends BaseModule
$birthday_count = 0; $birthday_count = 0;
$today_birthday_count = 0; $today_birthday_count = 0;
// Suppress notification display for forum accounts
if ($this->session->getLocalUserId()) { if ($this->session->getLocalUserId() && $this->session->get('page_flags', '') != User::PAGE_FLAGS_COMMUNITY) {
if ($this->pconfig->get($this->session->getLocalUserId(), 'system', 'detailed_notif')) { if ($this->pconfig->get($this->session->getLocalUserId(), 'system', 'detailed_notif')) {
$notifications = $this->notificationRepo->selectDetailedForUser($this->session->getLocalUserId()); $notifications = $this->notificationRepo->selectDetailedForUser($this->session->getLocalUserId());
} else { } else {