mirror of
https://github.com/friendica/friendica
synced 2025-05-15 15:44:11 +02:00
Fixed max value check, improved request value fetching
This commit is contained in:
parent
a3173ccb50
commit
720a43461d
12 changed files with 53 additions and 65 deletions
|
@ -79,7 +79,7 @@ class Show extends BaseApi
|
|||
throw new BadRequestException(sprintf("There is no status or conversation with the id %d.", $id));
|
||||
}
|
||||
|
||||
$include_entities = filter_var($request['include_entities'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$include_entities = $this->getRequestValue($request, 'include_entities', false);
|
||||
|
||||
$ret = [];
|
||||
while ($status = DBA::fetch($statuses)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue