mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30:10 +00:00
Move post_url
move post_url function
This commit is contained in:
parent
2f9642392d
commit
a32ba32ff4
12 changed files with 19 additions and 21 deletions
|
@ -22,6 +22,7 @@ use Friendica\Object\Image;
|
|||
use Friendica\Protocol\DFRN;
|
||||
use Friendica\Protocol\OStatus;
|
||||
use Friendica\Protocol\Feed;
|
||||
use Friendica\Util\Network;
|
||||
use Friendica\Util\ParseUrl;
|
||||
|
||||
require_once 'include/bbcode.php';
|
||||
|
@ -1480,7 +1481,7 @@ function subscribe_to_hub($url, $importer, $contact, $hubmode = 'subscribe') {
|
|||
dba::update('contact', ['hub-verify' => $verify_token], ['id' => $contact['id']]);
|
||||
}
|
||||
|
||||
post_url($url, $params);
|
||||
Network::postURL($url, $params);
|
||||
|
||||
logger('subscribe_to_hub: returns: ' . $a->get_curl_code(), LOGGER_DEBUG);
|
||||
|
||||
|
|
|
@ -12,11 +12,6 @@ use Friendica\Object\Image;
|
|||
use Friendica\Util\Network;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
function post_url($url, $params, $headers = null, &$redirects = 0, $timeout = 0)
|
||||
{
|
||||
return Network::postURL($url, $params, $headers, $redirects, $timeout);
|
||||
}
|
||||
|
||||
function xml_status($st, $message = '')
|
||||
{
|
||||
Network::xmlStatus($st, $message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue