Remove direct calls to App->user
This commit is contained in:
@@ -45,7 +45,7 @@ class NoScrape extends BaseModule
|
||||
$which = $parameters['nick'];
|
||||
} elseif (local_user() && isset($parameters['profile']) && DI::args()->get(2) == 'view') {
|
||||
// view infos about a known profile (needs a login)
|
||||
$which = $a->user['nickname'];
|
||||
$which = $a->getNickname();
|
||||
} else {
|
||||
System::jsonError(403, 'Authentication required');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user