Review changes

- Remove doc for unused config value
- Restore api_get_user($a) calls
This commit is contained in:
Hypolite Petovan 2018-01-04 13:26:09 -05:00
parent 35a18f6825
commit d1b3b7fbe4
2 changed files with 10 additions and 2 deletions

View file

@ -1111,6 +1111,8 @@ function api_statuses_update($type)
throw new ForbiddenException();
}
api_get_user($a);
// convert $_POST array items to the form we use for web posts.
if (requestdata('htmlstatus')) {
$txt = requestdata('htmlstatus');
@ -1286,6 +1288,8 @@ function api_media_upload()
throw new ForbiddenException();
}
api_get_user($a);
if (!x($_FILES, 'media')) {
// Output error
throw new BadRequestException("No media.");
@ -2112,6 +2116,8 @@ function api_statuses_repeat($type)
throw new ForbiddenException();
}
api_get_user($a);
// params
$id = intval($a->argv[3]);
@ -2190,6 +2196,8 @@ function api_statuses_destroy($type)
throw new ForbiddenException();
}
api_get_user($a);
// params
$id = intval($a->argv[3]);
@ -3524,6 +3532,8 @@ function api_ff_ids($type)
throw new ForbiddenException();
}
api_get_user($a);
$stringify_ids = defaults($_REQUEST, 'stringify_ids', false);
$r = q(