]> git.mxchange.org Git - friendica.git/blobdiff - include/gprobe.php
event items are now more themeable in the networkstream.
[friendica.git] / include / gprobe.php
index 46aec0d1d92e72dae137c778116e0b3ab6c5c8e9..9fb93e9596a2dd81a3ce2c1b31d26b0404a74f32 100644 (file)
@@ -2,7 +2,7 @@
 
 use Friendica\Core\Config;
 
-require_once('include/Scrape.php');
+require_once 'include/probe.php';
 require_once 'include/socgraph.php';
 require_once 'include/datetime.php';
 
@@ -10,7 +10,7 @@ function gprobe_run(&$argv, &$argc){
        if ($argc != 2) {
                return;
        }
-       $url = hex2bin($argv[1]);
+       $url = $argv[1];
 
        $r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1",
                dbesc(normalise_link($url))
@@ -47,7 +47,7 @@ function gprobe_run(&$argv, &$argc){
        }
        if (dbm::is_result($r)) {
                // Check for accessibility and do a poco discovery
-               if (poco_last_updated($r[0]['url'], true) AND ($r[0]["network"] == NETWORK_DFRN))
+               if (poco_last_updated($r[0]['url'], true) && ($r[0]["network"] == NETWORK_DFRN))
                        poco_load(0,0,$r[0]['id'], str_replace('/profile/','/poco/',$r[0]['url']));
        }