mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
The query condition for active users are unified
This commit is contained in:
parent
692a633dc8
commit
7e73283949
19 changed files with 33 additions and 37 deletions
|
@ -88,7 +88,7 @@ class DFRN
|
|||
$contact['senderName'] = $contact['name'];
|
||||
|
||||
if ($uid != 0) {
|
||||
$condition = ['uid' => $uid, 'account_expired' => false, 'account_removed' => false];
|
||||
$condition = ['uid' => $uid, 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false];
|
||||
$user = DBA::selectFirst('user', [], $condition);
|
||||
if (!DBA::isResult($user)) {
|
||||
return [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue