浏览代码

Changed probing call. Removed dupolicated code.

tags/3.5.2
Michael 3 年前
父节点
当前提交
19825eddf7
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. +2
    -7
      include/cronjobs.php

+ 2
- 7
include/cronjobs.php 查看文件

@@ -11,6 +11,7 @@ function cronjobs_run(&$argv, &$argc){
require_once('include/photos.php');
require_once('include/user.php');
require_once('include/socgraph.php');
require_once('include/Probe.php');

// No parameter set? So return
if ($argc <= 1) {
@@ -233,17 +234,11 @@ function cron_repair_diaspora(App $a) {
return;
}

$server_url = poco_detect_server($contact["url"]);

if (($server_url != "") AND !poco_check_server($server_url)) {
continue;
}

if (!poco_reachable($contact["url"])) {
continue;
}

$data = probe_url($contact["url"]);
$data = Probe::uri($contact["url"]);
if ($data["network"] != NETWORK_DIASPORA) {
continue;
}


正在加载...
取消
保存