mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +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;
|
||||
Cache::remember("user:filter:list:$pid", 1440, function() use($pid) {
|
||||
return UserFilter::whereUserId($pid)
|
||||
->whereFilterableType('App\Profile')
|
||||
->whereIn('filter_type', ['mute', 'block'])
|
||||
->pluck('filterable_id')->toArray();
|
||||
});
|
||||
Cache::forget("user:filter:list:$pid");
|
||||
Cache::forget("feature:discover:people:$pid");
|
||||
Cache::forget("feature:discover:posts:$pid");
|
||||
|
||||
return redirect()->back();
|
||||
}
|
||||
|
@ -256,12 +253,9 @@ class AccountController extends Controller
|
|||
]);
|
||||
|
||||
$pid = $user->id;
|
||||
Cache::remember("user:filter:list:$pid", 1440, function() use($pid) {
|
||||
return UserFilter::whereUserId($pid)
|
||||
->whereFilterableType('App\Profile')
|
||||
->whereIn('filter_type', ['mute', 'block'])
|
||||
->pluck('filterable_id')->toArray();
|
||||
});
|
||||
Cache::forget("user:filter:list:$pid");
|
||||
Cache::forget("feature:discover:people:$pid");
|
||||
Cache::forget("feature:discover:posts:$pid");
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue