forked from mirror/pixelfed
Update v1 notifications api, fix optional params
This commit is contained in:
parent
8b9faf3179
commit
4e3c952cf3
|
@ -1226,7 +1226,9 @@ class ApiV1Controller extends Controller
|
||||||
$min = $request->input('min_id');
|
$min = $request->input('min_id');
|
||||||
$max = $request->input('max_id');
|
$max = $request->input('max_id');
|
||||||
|
|
||||||
abort_if(!$since && !$min && !$max, 400);
|
if(!$since && !$min && !$max) {
|
||||||
|
$min = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$dir = $since ? '>' : ($min ? '>=' : '<');
|
$dir = $since ? '>' : ($min ? '>=' : '<');
|
||||||
$id = $since ?? $min ?? $max;
|
$id = $since ?? $min ?? $max;
|
||||||
|
|
Loading…
Reference in New Issue