Many deprecated function calls are replaced

This commit is contained in:
Michael 2024-05-13 16:19:19 +00:00
parent cfad5809ff
commit 60f5fd8188
28 changed files with 61 additions and 71 deletions

View file

@ -43,7 +43,7 @@ class NoScrape extends BaseModule
$which = $this->parameters['nick'];
} elseif (DI::userSession()->getLocalUserId() && isset($this->parameters['profile']) && DI::args()->get(2) == 'view') {
// view infos about a known profile (needs a login)
$which = $a->getLoggedInUserNickname();
$which = DI::userSession()->getLocalUserNickname();
} else {
$this->jsonError(403, 'Authentication required');
}