Update ThreadsController.php