mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
Update ApiV1Controller
This commit is contained in:
parent
1515a9f111
commit
4fe421a166
1 changed files with 1 additions and 1 deletions
|
@ -2516,7 +2516,7 @@ class ApiV1Controller extends Controller
|
||||||
$sortBy = $request->input('sort', 'all');
|
$sortBy = $request->input('sort', 'all');
|
||||||
|
|
||||||
if($sortBy == 'all' && !$request->has('cursor')) {
|
if($sortBy == 'all' && !$request->has('cursor')) {
|
||||||
$ids = Cache::remember('status:replies:all:' . $id, 900, function() use($id) {
|
$ids = Cache::remember('status:replies:all:' . $id, 86400, function() use($id) {
|
||||||
return DB::table('statuses')
|
return DB::table('statuses')
|
||||||
->where('in_reply_to_id', $id)
|
->where('in_reply_to_id', $id)
|
||||||
->orderBy('id')
|
->orderBy('id')
|
||||||
|
|
Loading…
Reference in a new issue