mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-11 14:40:46 +00:00
Update v1 notifications api, fix optional params
This commit is contained in:
parent
8b9faf3179
commit
4e3c952cf3
1 changed files with 3 additions and 1 deletions
|
@ -1226,7 +1226,9 @@ class ApiV1Controller extends Controller
|
|||
$min = $request->input('min_id');
|
||||
$max = $request->input('max_id');
|
||||
|
||||
abort_if(!$since && !$min && !$max, 400);
|
||||
if(!$since && !$min && !$max) {
|
||||
$min = 1;
|
||||
}
|
||||
|
||||
$dir = $since ? '>' : ($min ? '>=' : '<');
|
||||
$id = $since ?? $min ?? $max;
|
||||
|
|
Loading…
Reference in a new issue