mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update ApiV1Controller, fixes #3288
This commit is contained in:
parent
a44b812b13
commit
3e670774c0
1 changed files with 1 additions and 1 deletions
|
@ -2547,7 +2547,7 @@ class ApiV1Controller extends Controller
|
|||
|
||||
$sortBy = $request->input('sort', 'all');
|
||||
|
||||
if($sortBy == 'all' && $status['replies_count'] && $request->has('refresh_cache')) {
|
||||
if($sortBy == 'all' && isset($status['replies_count']) && $status['replies_count'] && $request->has('refresh_cache')) {
|
||||
if(!Cache::has('status:replies:all-rc:' . $id)) {
|
||||
Cache::forget('status:replies:all:' . $id);
|
||||
Cache::put('status:replies:all-rc:' . $id, true, 300);
|
||||
|
|
Loading…
Reference in a new issue