mirror of
https://github.com/friendica/friendica
synced 2025-05-02 04:24:22 +02:00
Remove obsolete profile_id parameter in Model\Profile::load
This commit is contained in:
parent
0b8fd92e1e
commit
a7dd0173a7
10 changed files with 11 additions and 16 deletions
|
@ -21,16 +21,14 @@ class HoverCard extends BaseModule
|
|||
if ((local_user()) && ($parameters['action'] ?? '') === 'view') {
|
||||
// A logged in user views a profile of a user
|
||||
$nickname = $a->user['nickname'];
|
||||
$profile = $parameters['profile'];
|
||||
} elseif (empty($parameters['action'])) {
|
||||
// Show the profile hovercard
|
||||
$nickname = $parameters['profile'];
|
||||
$profile = 0;
|
||||
} else {
|
||||
throw new NotFoundException(DI::l10n()->t('No profile'));
|
||||
}
|
||||
|
||||
Profile::load($a, $nickname, $profile);
|
||||
Profile::load($a, $nickname);
|
||||
|
||||
$page = DI::page();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue