kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			Update StatusController
							rodzic
							
								
									2eee36cfbd
								
							
						
					
					
						commit
						1b53174d3a
					
				|  | @ -219,11 +219,11 @@ class StatusController extends Controller | ||||||
| 			$u->save(); | 			$u->save(); | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
|  | 		if ($status->profile_id == $user->profile->id || $user->is_admin == true) { | ||||||
| 			Cache::forget('_api:statuses:recent_9:' . $status->profile_id); | 			Cache::forget('_api:statuses:recent_9:' . $status->profile_id); | ||||||
| 			Cache::forget('profile:status_count:' . $status->profile_id); | 			Cache::forget('profile:status_count:' . $status->profile_id); | ||||||
| 			Cache::forget('profile:embed:' . $status->profile_id); | 			Cache::forget('profile:embed:' . $status->profile_id); | ||||||
| 			StatusService::del($status->id, true); | 			StatusService::del($status->id, true); | ||||||
| 		if ($status->profile_id == $user->profile->id || $user->is_admin == true) { |  | ||||||
| 			Cache::forget('profile:status_count:'.$status->profile_id); | 			Cache::forget('profile:status_count:'.$status->profile_id); | ||||||
| 			StatusDelete::dispatch($status); | 			StatusDelete::dispatch($status); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Ładowanie…
	
		Reference in New Issue
	
	 Daniel Supernault
						Daniel Supernault