mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 09:17:03 +00:00
Update AccountController
This commit is contained in:
parent
236fb901a3
commit
e4e6f10c90
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue