1
0
Fork 0

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

@ -25,7 +25,6 @@ Example: To set the directory value please add this line to your .htconfig.php:
* **allowed_link_protocols** (Array) - Allowed protocols in links URLs, add at your own risk. http is always allowed. * **allowed_link_protocols** (Array) - Allowed protocols in links URLs, add at your own risk. http is always allowed.
* **always_show_preview** (Boolean) - Only show small preview picures. Default value is false. * **always_show_preview** (Boolean) - Only show small preview picures. Default value is false.
* **birthday_input_format** - Default value is "ymd".
* **block_local_dir** (Boolean) - Blocks the access to the directory of the local users. * **block_local_dir** (Boolean) - Blocks the access to the directory of the local users.
* **auth_cookie_lifetime** (Integer) - Number of days that should pass without any activity before a user who chose "Remember me" when logging in is considered logged out. Defaults to 7. * **auth_cookie_lifetime** (Integer) - Number of days that should pass without any activity before a user who chose "Remember me" when logging in is considered logged out. Defaults to 7.
* **curl_range_bytes** - Maximum number of bytes that should be fetched. Default is 0, which mean "no limit". * **curl_range_bytes** - Maximum number of bytes that should be fetched. Default is 0, which mean "no limit".
@ -43,7 +42,6 @@ Example: To set the directory value please add this line to your .htconfig.php:
* **disable_email_validation** (Boolean) - Disables the check if a mail address is in a valid format and can be resolved via DNS. * **disable_email_validation** (Boolean) - Disables the check if a mail address is in a valid format and can be resolved via DNS.
* **disable_url_validation** (Boolean) - Disables the DNS lookup of an URL. * **disable_url_validation** (Boolean) - Disables the DNS lookup of an URL.
* **dlogfile - location of the developer log file * **dlogfile - location of the developer log file
* **event_input_format** - Default value is "ymd".
* **frontend_worker_timeout** - Value in minutes after we think that a frontend task was killed by the webserver. Default value is 10. * **frontend_worker_timeout** - Value in minutes after we think that a frontend task was killed by the webserver. Default value is 10.
* **hsts** (Boolean) - Enables the sending of HTTP Strict Transport Security headers * **hsts** (Boolean) - Enables the sending of HTTP Strict Transport Security headers
* **ignore_cache** (Boolean) - For development only. Disables the item cache. * **ignore_cache** (Boolean) - For development only. Disables the item cache.

View file

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