Better handling of private accounts
This commit is contained in:
parent
e8ec0ab293
commit
5dea2468f8
4 changed files with 6 additions and 6 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue