1
0
Fork 0
forked from mirror/pixelfed

Update ApiController, fix hashtag endpoint

This commit is contained in:
Daniel Supernault 2021-06-30 17:10:33 -06:00
parent 076ec333a9
commit 9ac8bbde91
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -2028,11 +2028,15 @@ class ApiV1Controller extends Controller
->latest()
->limit($limit)
->pluck('status_id')
->filter(function($i) {
return StatusService::get($i);
})
->map(function ($i) {
return StatusService::get($i);
})
->filter()
->all();
->values()
->toArray();
return response()->json($res, 200, [], JSON_PRETTY_PRINT);
}