1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00

Update v1.1 api

This commit is contained in:
Daniel Supernault 2022-09-25 08:16:01 -06:00
parent 6b2f6b3c22
commit 08ab19f0ea
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -388,7 +388,7 @@ class ApiV1Dot1Controller extends Controller
abort_if(!$user, 403);
abort_if($user->status != null, 403);
$res = $user->tokens->map(function($token, $key) {
$res = $user->tokens->sortByDesc('created_at')->take(10)->map(function($token, $key) {
return [
'id' => $key + 1,
'did' => encrypt($token->id),