mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 23:54:28 +02:00
Move "User::allow()" to own method and update usages
This commit is contained in:
parent
f3f764bc39
commit
6aee153bbd
7 changed files with 197 additions and 194 deletions
|
@ -48,6 +48,27 @@ class Register
|
|||
return DBA::toArray($stmt);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the pending user based on a given user id
|
||||
*
|
||||
* @param int $uid The user id
|
||||
*
|
||||
* @return array The pending user information
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getPendingForUser(int $uid)
|
||||
{
|
||||
return DBA::fetchFirst(
|
||||
"SELECT `register`.*, `contact`.`name`, `contact`.`url`, `contact`.`micro`, `user`.`email`
|
||||
FROM `register`
|
||||
INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid`
|
||||
INNER JOIN `user` ON `register`.`uid` = `user`.`uid`
|
||||
WHERE `register`.uid = ?",
|
||||
$uid
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the pending registration count
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue