<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module;
use Friendica\BaseModule;
-use Friendica\Network\Probe;
use Friendica\Core\System;
+use Friendica\Model\Contact;
/**
* Redirects to another URL based on the parameter 'addr'
$addr = trim($_GET['addr'] ?? '');
if ($addr) {
- $url = Probe::uri($addr)['url'] ?? '';
-
+ $url = Contact::getByURL($addr)['url'] ?? '';
if ($url) {
- System::externalRedirect($url);
+ System::externalRedirect($url['url']);
exit();
}
}