mirror of
https://github.com/friendica/friendica
synced 2025-04-24 22:30:11 +00:00
Review changes
- Remove doc for unused config value - Restore api_get_user($a) calls
This commit is contained in:
parent
35a18f6825
commit
d1b3b7fbe4
2 changed files with 10 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue