mirror of
https://github.com/friendica/friendica
synced 2025-05-18 09:04:12 +02: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
|
@ -111,7 +111,7 @@ class PubSubHubBub extends \Friendica\BaseModule
|
|||
}
|
||||
|
||||
// fetch user from database given the nickname
|
||||
$condition = ['nickname' => $nickname, 'account_expired' => false, 'account_removed' => false];
|
||||
$condition = ['nickname' => $nickname, 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false];
|
||||
$owner = $this->database->selectFirst('user', ['uid', 'nickname'], $condition);
|
||||
if (!$owner) {
|
||||
$this->logger->notice('Local account not found', ['nickname' => $nickname, 'topic' => $hub_topic, 'callback' => $hub_callback]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue