Merge pull request #8734 from MrPetovan/bug/8732-noscrape-notice
Exit with an error if profile info isn't available in Module\NoScrape
This commit is contained in:
commit
3eb3fe8e98
|
@ -49,11 +49,14 @@ class NoScrape extends BaseModule
|
|||
$which = $a->user['nickname'];
|
||||
} else {
|
||||
System::jsonError(403, 'Authentication required');
|
||||
exit();
|
||||
}
|
||||
|
||||
Profile::load($a, $which);
|
||||
|
||||
if (empty($a->profile['uid'])) {
|
||||
System::jsonError(404, 'Profile not found');
|
||||
}
|
||||
|
||||
$json_info = [
|
||||
'addr' => $a->profile['addr'],
|
||||
'nick' => $which,
|
||||
|
|
Loading…
Reference in New Issue
Block a user