]> git.mxchange.org Git - friendica.git/commitdiff
Suppress notifications for forum users in Module\Notifications\Ping
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 15 Dec 2022 03:01:14 +0000 (22:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 15 Dec 2022 03:01:14 +0000 (22:01 -0500)
- The bell icon is already hidden for them but the notification number showed in the page title

src/Module/Notifications/Ping.php

index df75c047afdd8b8c25d8f135743710db1e930786..c16dec311c51e84ea3bdd3b7f1e7bcc414956763 100644 (file)
@@ -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 {