Remove obsolete profile_id parameter in Model\Profile::load

This commit is contained in:
Hypolite Petovan 2020-01-27 22:01:12 -05:00
parent 0b8fd92e1e
commit a7dd0173a7
10 changed files with 11 additions and 16 deletions

View file

@ -25,17 +25,15 @@ class NoScrape extends BaseModule
if (isset($parameters['nick'])) {
// Get infos about a specific nick (public)
$which = $parameters['nick'];
$profile = 0;
} elseif (local_user() && isset($parameters['profile']) && DI::args()->get(2) == 'view') {
// view infos about a known profile (needs a login)
$which = $a->user['nickname'];
$profile = $parameters['profile'];
} else {
System::jsonError(403, 'Authentication required');
exit();
}
Profile::load($a, $which, $profile);
Profile::load($a, $nickname);
$json_info = [
'addr' => $a->profile['addr'],