forked from mirror/pixelfed
Update AccountController
This commit is contained in:
parent
236fb901a3
commit
e4e6f10c90
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue