kopia lustrzana https://github.com/pixelfed/pixelfed
Update ApiV1Controller, fix illegal operator bug by setting default min_id
rodzic
35e2cf1f6b
commit
415826f253
|
@ -514,6 +514,11 @@ class ApiV1Controller extends Controller
|
||||||
$limit = $request->limit ?? 20;
|
$limit = $request->limit ?? 20;
|
||||||
$max_id = $request->max_id;
|
$max_id = $request->max_id;
|
||||||
$min_id = $request->min_id;
|
$min_id = $request->min_id;
|
||||||
|
|
||||||
|
if(!$max_id && !$min_id) {
|
||||||
|
$min_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
$pid = $request->user()->profile_id;
|
$pid = $request->user()->profile_id;
|
||||||
$scope = $request->only_media == true ?
|
$scope = $request->only_media == true ?
|
||||||
['photo', 'photo:album', 'video', 'video:album'] :
|
['photo', 'photo:album', 'video', 'video:album'] :
|
||||||
|
|
Ładowanie…
Reference in New Issue