mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:10:11 +00:00
Use "getOwnerDataById" and "getOwnerDataByNick" to fetch owner data
This commit is contained in:
parent
638723ea1c
commit
f0268b57be
6 changed files with 36 additions and 79 deletions
|
@ -283,21 +283,6 @@ class Profile
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the profile for the given nick name
|
||||
*
|
||||
* Includes all available profile data
|
||||
*
|
||||
* @param string $nickname nick
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getByNickname($nickname)
|
||||
{
|
||||
$profile = DBA::selectFirst('owner-view', [], ['nickname' => $nickname]);
|
||||
return $profile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats a profile for display in the sidebar.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue