Update ApiV1Controller, return empty statuses feed for private accounts instead of 403 response

pull/5861/head
Daniel Supernault 2 months ago
parent f64f31427c
commit cce657d9c8
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -747,7 +747,7 @@ class ApiV1Controller extends Controller
} elseif ($profile['locked']) {
$following = FollowerService::follows($pid, $profile['id']);
if (! $following) {
return response('', 403);
return response()->json([]);
}
$visibility = ['public', 'unlisted', 'private'];
} else {

Loading…
Cancel
Save