mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 13:33:18 +00:00
Merge pull request #3330 from pixelfed/staging
Update ApiV1Controller, fix apps endpoint
This commit is contained in:
commit
75256acaff
2 changed files with 4 additions and 5 deletions
|
@ -98,6 +98,7 @@
|
|||
- Updated ApiV1Controller, fix context entities. ([b1ab41e0](https://github.com/pixelfed/pixelfed/commit/b1ab41e0))
|
||||
- Updated ApiV1Controller, fix timeline default limit. ([a87f8301](https://github.com/pixelfed/pixelfed/commit/a87f8301))
|
||||
- Updated ApiV1Controller, fix search v2 entities. ([9dac861e](https://github.com/pixelfed/pixelfed/commit/9dac861e))
|
||||
- Updated ApiV1Controller, fix apps endpoint. ([50baae52](https://github.com/pixelfed/pixelfed/commit/50baae52))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)
|
||||
|
|
|
@ -102,9 +102,7 @@ class ApiV1Controller extends Controller
|
|||
|
||||
$this->validate($request, [
|
||||
'client_name' => 'required',
|
||||
'redirect_uris' => 'required',
|
||||
'scopes' => 'nullable',
|
||||
'website' => 'nullable'
|
||||
'redirect_uris' => 'required'
|
||||
]);
|
||||
|
||||
$uris = implode(',', explode('\n', $request->redirect_uris));
|
||||
|
@ -122,11 +120,11 @@ class ApiV1Controller extends Controller
|
|||
$client->save();
|
||||
|
||||
$res = [
|
||||
'id' => $client->id,
|
||||
'id' => (string) $client->id,
|
||||
'name' => $client->name,
|
||||
'website' => null,
|
||||
'redirect_uri' => $client->redirect,
|
||||
'client_id' => $client->id,
|
||||
'client_id' => (string) $client->id,
|
||||
'client_secret' => $client->secret,
|
||||
'vapid_key' => null
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue