Push sightings regardsless of distribution level

pull/5443/head
Richard van den Berg 2019-12-03 14:27:13 +01:00
parent 69ec57dd39
commit 4f1ca7ef1b
1 changed files with 4 additions and 2 deletions

View File

@ -3997,8 +3997,10 @@ class Event extends AppModel
$failedServers = array();
App::uses('SyncTool', 'Tools');
foreach ($servers as &$server) {
if (((!isset($server['Server']['internal']) || !$server['Server']['internal']) && $event['Event']['distribution'] < 2) ||
((!isset($server['Server']['push_sightings']) || !$server['Server']['push_sightings'])) && $scope === 'sightings') {
if (($scope === 'events' &&
(!isset($server['Server']['internal'] || !$server['Server']['internal']) && $event['Event']['distribution'] < 2)) ||
($scope === 'sightings' &&
(!isset($server['Server']['push_sightings'] || !$server['Server']['push_sightings'])))) {
continue;
}
$syncTool = new SyncTool();