1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 09:17:03 +00:00

Update AccountController

This commit is contained in:
Daniel Supernault 2019-04-28 21:49:17 -06:00
parent 236fb901a3
commit e4e6f10c90
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -207,6 +207,7 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }
@ -257,6 +258,7 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
if($request->wantsJson()) { if($request->wantsJson()) {
return response()->json([200]); return response()->json([200]);
@ -310,6 +312,8 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }
@ -360,6 +364,8 @@ class AccountController extends Controller
Cache::forget("user:filter:list:$pid"); Cache::forget("user:filter:list:$pid");
Cache::forget("feature:discover:people:$pid"); Cache::forget("feature:discover:people:$pid");
Cache::forget("feature:discover:posts:$pid"); Cache::forget("feature:discover:posts:$pid");
Cache::forget("api:local:exp:rec:$pid");
return redirect()->back(); return redirect()->back();
} }