use Probe:uri() instead of probe_url

2022.09-rc
rabuzarus 2017-05-31 18:43:57 +02:00
rodzic df7acc7655
commit 8311af3e92
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -4,6 +4,9 @@
* @brief Methods for read and write notifications from/to database * @brief Methods for read and write notifications from/to database
* or for formatting notifications * or for formatting notifications
*/ */
use Friendica\Network\Probe;
require_once 'include/html2plain.php'; require_once 'include/html2plain.php';
require_once 'include/probe.php'; require_once 'include/probe.php';
require_once 'include/datetime.php'; require_once 'include/datetime.php';
@ -847,7 +850,7 @@ class NotificationsManager {
// If the network and addr is still not available try to probe // If the network and addr is still not available try to probe
// the contact url to fetch the missing data // the contact url to fetch the missing data
if ($arr['gnetwork'] == "" || $arr['gaddr'] == "") { if ($arr['gnetwork'] == "" || $arr['gaddr'] == "") {
$ret = probe_url($arr["url"]); $ret = Probe::uri($arr["url"]);
} }
if ($arr['gnetwork'] == "") { if ($arr['gnetwork'] == "") {