Update PublicApiController, fix accountStatuses pagination operator

This commit is contained in:
Daniel Supernault 2022-01-03 00:59:39 -07:00
parent c32fde22e7
commit 85fc9dd0a8
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -738,6 +738,10 @@ class PublicApiController extends Controller
$min_id = $request->min_id; $min_id = $request->min_id;
$scope = ['photo', 'photo:album', 'video', 'video:album']; $scope = ['photo', 'photo:album', 'video', 'video:album'];
if(!$min_id && !$max_id) {
$min_id = 1;
}
if($profile['locked']) { if($profile['locked']) {
if(!$user) { if(!$user) {
return response()->json([]); return response()->json([]);