mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Merge pull request #2833 from pixelfed/staging
Update ApiController, fix hashtag endpoint
This commit is contained in:
commit
a8507dd813
1 changed files with 5 additions and 1 deletions
|
@ -2028,11 +2028,15 @@ class ApiV1Controller extends Controller
|
||||||
->latest()
|
->latest()
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->pluck('status_id')
|
->pluck('status_id')
|
||||||
|
->filter(function($i) {
|
||||||
|
return StatusService::get($i);
|
||||||
|
})
|
||||||
->map(function ($i) {
|
->map(function ($i) {
|
||||||
return StatusService::get($i);
|
return StatusService::get($i);
|
||||||
})
|
})
|
||||||
->filter()
|
->filter()
|
||||||
->all();
|
->values()
|
||||||
|
->toArray();
|
||||||
|
|
||||||
return response()->json($res, 200, [], JSON_PRETTY_PRINT);
|
return response()->json($res, 200, [], JSON_PRETTY_PRINT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue