From 2d624e900dacc8255f4f62ca0e84d1f183712f67 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 14 Dec 2022 22:01:14 -0500 Subject: [PATCH] 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 --- src/Module/Notifications/Ping.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php index df75c047af..c16dec311c 100644 --- a/src/Module/Notifications/Ping.php +++ b/src/Module/Notifications/Ping.php @@ -116,8 +116,8 @@ class Ping extends BaseModule $birthday_count = 0; $today_birthday_count = 0; - - if ($this->session->getLocalUserId()) { + // Suppress notification display for forum accounts + if ($this->session->getLocalUserId() && $this->session->get('page_flags', '') != User::PAGE_FLAGS_COMMUNITY) { if ($this->pconfig->get($this->session->getLocalUserId(), 'system', 'detailed_notif')) { $notifications = $this->notificationRepo->selectDetailedForUser($this->session->getLocalUserId()); } else { -- 2.39.5