Merge pull request #12427 from MrPetovan/bug/12399-suppress-notif-forum

Suppress notifications for forum users in Module\Notifications\Ping
This commit is contained in:
Tobias Diekershoff 2022-12-15 06:20:21 +01:00 committed by GitHub
commit 7d20798e97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {