From 6edaf940996e82b42bf62bfca6213803041763c4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 30 Jan 2021 09:36:09 -0700 Subject: [PATCH] Update AdminController, fix variable name in updateSpam method --- app/Http/Controllers/AdminController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index e492bd1cb..2b3f19916 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -139,8 +139,8 @@ class AdminController extends Controller $appeal->appeal_handled_at = now(); $appeal->save(); - Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $status->profile_id); - Cache::forget('pf:bouncer_v0:recent_by_pid:' . $status->profile_id); + Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $appeal->user->profile_id); + Cache::forget('pf:bouncer_v0:recent_by_pid:' . $appeal->user->profile_id); return redirect('/i/admin/reports/autospam'); } @@ -154,8 +154,8 @@ class AdminController extends Controller $appeal->appeal_handled_at = now(); $appeal->save(); - Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $status->profile_id); - Cache::forget('pf:bouncer_v0:recent_by_pid:' . $status->profile_id); + Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $appeal->user->profile_id); + Cache::forget('pf:bouncer_v0:recent_by_pid:' . $appeal->user->profile_id); return redirect('/i/admin/reports/autospam'); }