Procházet zdrojové kódy

Update AdminReportController

Daniel Supernault před 2 roky
rodič
revize
ae0d5d2d40

+ 3 - 1
app/Http/Controllers/Admin/AdminReportController.php

@@ -1103,7 +1103,6 @@ trait AdminReportController
     	Cache::forget('admin-dash:reports:spam-count');
     	Cache::forget('admin-dash:reports:spam-count');
     	Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $report->user->profile_id);
     	Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $report->user->profile_id);
 		Cache::forget('pf:bouncer_v0:recent_by_pid:' . $report->user->profile_id);
 		Cache::forget('pf:bouncer_v0:recent_by_pid:' . $report->user->profile_id);
-		PublicTimelineService::warmCache(true, 400);
     	return [$action, $report];
     	return [$action, $report];
     }
     }
 
 
@@ -1115,6 +1114,7 @@ trait AdminReportController
 			$appeal->is_spam = true;
 			$appeal->is_spam = true;
 			$appeal->appeal_handled_at = now();
 			$appeal->appeal_handled_at = now();
 			$appeal->save();
 			$appeal->save();
+			PublicTimelineService::del($appeal->item_id);
 		}
 		}
 
 
 		if($action == 'mark-not-spam') {
 		if($action == 'mark-not-spam') {
@@ -1137,6 +1137,8 @@ trait AdminReportController
 				});
 				});
 
 
 			StatusService::del($status->id);
 			StatusService::del($status->id);
+			StatusService::get($status->id);
+			PublicTimelineService::add($status->id);
 		}
 		}
 
 
 		if($action == 'mark-all-read') {
 		if($action == 'mark-all-read') {