mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
improvements
This commit is contained in:
parent
ca67e3111c
commit
ed9756225d
2 changed files with 2 additions and 3 deletions
|
@ -74,8 +74,7 @@ function notification($params)
|
|||
|
||||
$sender_email = DI::emailer()->getSiteEmailAddress();
|
||||
|
||||
$user = DBA::selectFirst('user', ['nickname', 'page-flags'],
|
||||
['uid' => $params['uid']]);
|
||||
$user = User::getById($params['uid'], ['nickname', 'page-flags']);
|
||||
|
||||
// There is no need to create notifications for forum accounts
|
||||
if (!DBA::isResult($user) || in_array($user["page-flags"], [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue