mirror of
https://github.com/friendica/friendica
synced 2024-11-10 02:22:55 +00:00
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:
commit
7d20798e97
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue