]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Notifications/Ping.php
Merge remote-tracking branch 'upstream/develop' into diaspora-item
[friendica.git] / src / Module / Notifications / Ping.php
index df75c047afdd8b8c25d8f135743710db1e930786..15c775d201fa3f78a978e337b95cc33f669db641 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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 {