mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
Update AccountController
This commit is contained in:
parent
c40b4f5cfd
commit
20fa6fd8e7
1 changed files with 6 additions and 12 deletions
|
@ -204,12 +204,9 @@ class AccountController extends Controller
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$pid = $user->id;
|
$pid = $user->id;
|
||||||
Cache::remember("user:filter:list:$pid", 1440, function() use($pid) {
|
Cache::forget("user:filter:list:$pid");
|
||||||
return UserFilter::whereUserId($pid)
|
Cache::forget("feature:discover:people:$pid");
|
||||||
->whereFilterableType('App\Profile')
|
Cache::forget("feature:discover:posts:$pid");
|
||||||
->whereIn('filter_type', ['mute', 'block'])
|
|
||||||
->pluck('filterable_id')->toArray();
|
|
||||||
});
|
|
||||||
|
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
@ -256,12 +253,9 @@ class AccountController extends Controller
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$pid = $user->id;
|
$pid = $user->id;
|
||||||
Cache::remember("user:filter:list:$pid", 1440, function() use($pid) {
|
Cache::forget("user:filter:list:$pid");
|
||||||
return UserFilter::whereUserId($pid)
|
Cache::forget("feature:discover:people:$pid");
|
||||||
->whereFilterableType('App\Profile')
|
Cache::forget("feature:discover:posts:$pid");
|
||||||
->whereIn('filter_type', ['mute', 'block'])
|
|
||||||
->pluck('filterable_id')->toArray();
|
|
||||||
});
|
|
||||||
return redirect()->back();
|
return redirect()->back();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue