mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
all endpoints are now working
This commit is contained in:
parent
feeec908d3
commit
8c7e5bb776
6 changed files with 285 additions and 24 deletions
|
@ -28,6 +28,19 @@ require_once 'include/dba.php';
|
|||
|
||||
class Profile
|
||||
{
|
||||
/**
|
||||
* @brief Returns default profile for a given user id
|
||||
*
|
||||
* @param integer User ID
|
||||
*
|
||||
* @return array Profile data
|
||||
*/
|
||||
public static function getProfileForUser($uid)
|
||||
{
|
||||
$profile = DBA::selectFirst('profile', [], ['uid' => $uid, 'is-default' => true]);
|
||||
return $profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns a formatted location string from the given profile array
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue