From a726056c5f630c53111e4dce8d23c19740a7aa7a Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Thu, 1 Jun 2017 11:44:59 +0200 Subject: [PATCH] use get_contact_details_by_url() instead of Probe:uri() --- include/NotificationsManager.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/NotificationsManager.php b/include/NotificationsManager.php index e662bd7354..96af0b76c2 100644 --- a/include/NotificationsManager.php +++ b/include/NotificationsManager.php @@ -5,12 +5,11 @@ * or for formatting notifications */ -use Friendica\Network\Probe; - require_once 'include/html2plain.php'; require_once 'include/probe.php'; require_once 'include/datetime.php'; require_once 'include/bbcode.php'; +require_once 'include/Contact.php'; /** * @brief Methods for read and write notifications from/to database @@ -847,10 +846,10 @@ class NotificationsManager { $arr['gaddr'] = $arr['addr']; } - // If the network and addr is still not available try to probe - // the contact url to fetch the missing data + // If the network and addr is still not available + // get the missing data data from other sources if ($arr['gnetwork'] == "" || $arr['gaddr'] == "") { - $ret = Probe::uri($arr["url"]); + $ret = get_contact_details_by_url($arr['url']); } if ($arr['gnetwork'] == "") {