mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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 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 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 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/))
|
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||||
|
|
||||||
## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)
|
## [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, [
|
$this->validate($request, [
|
||||||
'client_name' => 'required',
|
'client_name' => 'required',
|
||||||
'redirect_uris' => 'required',
|
'redirect_uris' => 'required'
|
||||||
'scopes' => 'nullable',
|
|
||||||
'website' => 'nullable'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$uris = implode(',', explode('\n', $request->redirect_uris));
|
$uris = implode(',', explode('\n', $request->redirect_uris));
|
||||||
|
@ -122,11 +120,11 @@ class ApiV1Controller extends Controller
|
||||||
$client->save();
|
$client->save();
|
||||||
|
|
||||||
$res = [
|
$res = [
|
||||||
'id' => $client->id,
|
'id' => (string) $client->id,
|
||||||
'name' => $client->name,
|
'name' => $client->name,
|
||||||
'website' => null,
|
'website' => null,
|
||||||
'redirect_uri' => $client->redirect,
|
'redirect_uri' => $client->redirect,
|
||||||
'client_id' => $client->id,
|
'client_id' => (string) $client->id,
|
||||||
'client_secret' => $client->secret,
|
'client_secret' => $client->secret,
|
||||||
'vapid_key' => null
|
'vapid_key' => null
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue