X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDelegation.php;h=b6451c85af2d2822bec11cc3288fe636f9b94e0b;hb=76ae210527487bea129411e8ed02ac4997d0d89b;hp=eb38f02891d1aa575095900291222314a73a66c5;hpb=cfd50f9abbbab2d32808886d3bb22ca0ead3da95;p=friendica.git diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index eb38f02891..b6451c85af 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Module; @@ -112,7 +131,7 @@ class Delegation extends BaseModule $identities[$key]['selected'] = ($identity['nickname'] === DI::app()->user['nickname']); - $condition = ["`uid` = ? AND `msg` != '' AND NOT (`type` IN (?, ?)) AND NOT `seen`", $identity['uid'], Type::INTRO, NOTIFY_MAIL]; + $condition = ["`uid` = ? AND `msg` != '' AND NOT (`type` IN (?, ?)) AND NOT `seen`", $identity['uid'], Type::INTRO, Type::MAIL]; $params = ['distinct' => true, 'expression' => 'parent']; $notifications = DBA::count('notify', $condition, $params);