소스 검색

Update AdminController, fix variable name in updateSpam method

Daniel Supernault 4 년 전
부모
커밋
6edaf94099
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      app/Http/Controllers/AdminController.php

+ 4 - 4
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');
 	}