Better handling of private accounts

This commit is contained in:
Pablo Ferreiro 2023-02-01 15:22:53 +01:00
parent e8ec0ab293
commit 5dea2468f8
4 changed files with 6 additions and 6 deletions

View file

@ -18,10 +18,6 @@ class UserController {
if ($user->ok()) {
$info = $user->getInfo();
$feed = $user->getFeed();
if ($info->detail->privateAccount) {
ErrorHandler::showText(401, "Private account detected! Not supported");
return;
}
Wrappers::latte('user', new FullTemplate($info->detail->nickname, $info, $feed));
} else {
ErrorHandler::showMeta($user->error());