Use correct uncertainty query param name, provide better erro info in repsonse
This commit is contained in:
parent
46ed129904
commit
c8890f3033
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,7 @@ class MicropubClientController extends Controller
|
|||
try {
|
||||
$query = 'geo:' . $latitude . ',' . $longitude;
|
||||
if ($request->input('u') !== null) {
|
||||
$query .= ';u=' . $request->input('uncertainty');
|
||||
$query .= ';u=' . $request->input('u');
|
||||
}
|
||||
$response = $this->guzzleClient->get($micropubEndpoint, [
|
||||
'headers' => ['Authorization' => 'Bearer ' . $token],
|
||||
|
@ -319,6 +319,7 @@ class MicropubClientController extends Controller
|
|||
return response()->json([
|
||||
'error' => true,
|
||||
'error_description' => 'The endpoint returned a non-good response',
|
||||
'error_stack' => $e->getMessage()
|
||||
], 400);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue