Use "getOwnerDataById" and "getOwnerDataByNick" to fetch owner data

This commit is contained in:
Michael 2021-07-04 17:25:08 +00:00
parent 638723ea1c
commit f0268b57be
6 changed files with 36 additions and 79 deletions

View file

@ -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.
*