From e4ca4ad8800f6f24fbeb5db9edccecc43d01ce9b Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 2 Jul 2018 12:31:56 +0100 Subject: [PATCH] Do not collect contact email anymore --- app/Integrations/Core/Beacon.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/app/Integrations/Core/Beacon.php b/app/Integrations/Core/Beacon.php index c9c8b9ac..7ebbd7e0 100644 --- a/app/Integrations/Core/Beacon.php +++ b/app/Integrations/Core/Beacon.php @@ -81,10 +81,6 @@ class Beacon implements BeaconContract return; } - if (!($contactEmail = User::admins()->active()->first()->email)) { - $contactEmail = null; - } - $setting = app(Setting::class); if (!$installId = $setting->get('install_id', null)) { @@ -94,12 +90,11 @@ class Beacon implements BeaconContract } $payload = [ - 'install_id' => $installId, - 'version' => CACHET_VERSION, - 'docker' => $this->config->get('cachet.is_docker'), - 'database' => $this->config->get('database.default'), - 'contact_email' => $contactEmail, - 'data' => [ + 'install_id' => $installId, + 'version' => CACHET_VERSION, + 'docker' => $this->config->get('cachet.is_docker'), + 'database' => $this->config->get('database.default'), + 'data' => [ 'components' => Component::all()->count(), 'incidents' => Incident::all()->count(), 'metrics' => Metric::all()->count(),