Replace almost every Introduction places

This commit is contained in:
Philipp 2021-10-18 22:49:25 +02:00
parent a40f503fdd
commit 7d7d310cc4
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
8 changed files with 128 additions and 43 deletions

View file

@ -133,7 +133,7 @@ class Delegation extends BaseModule
$params = ['distinct' => true, 'expression' => 'convid'];
$notifications += DBA::count('mail', ['uid' => $identity['uid'], 'seen' => false], $params);
$notifications += DBA::count('intro', ['blocked' => false, 'ignore' => false, 'uid' => $identity['uid']]);
$notifications += DI::intro()->countActiveForUser($identity['uid']);
$identities[$key]['notifications'] = $notifications;
}