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
|
@ -30,6 +30,7 @@ use Friendica\Model\User;
|
|||
use Friendica\Network\Probe;
|
||||
use Friendica\Protocol\Diaspora;
|
||||
use Friendica\Util\Crypto;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once 'include/enotify.php';
|
||||
require_once 'include/items.php';
|
||||
|
@ -220,7 +221,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
*
|
||||
*/
|
||||
|
||||
$res = post_url($dfrn_confirm, $params, null, $redirects, 120);
|
||||
$res = Network::postURL($dfrn_confirm, $params, null, $redirects, 120);
|
||||
|
||||
logger(' Confirm: received data: ' . $res, LOGGER_DATA);
|
||||
|
||||
|
|
|
@ -490,7 +490,7 @@ function dfrn_poll_content(App $a)
|
|||
. '&sec=' . $sec
|
||||
);
|
||||
} else {
|
||||
$s = post_url($r[0]['poll'], [
|
||||
$s = Network::postURL($r[0]['poll'], [
|
||||
'dfrn_id' => $encrypted_id,
|
||||
'type' => 'profile-check',
|
||||
'dfrn_version' => DFRN_PROTOCOL_VERSION,
|
||||
|
|
|
@ -10,6 +10,7 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Profile;
|
||||
use Friendica\Util\Network;
|
||||
|
||||
require_once 'include/text.php';
|
||||
require_once 'mod/proxy.php';
|
||||
|
@ -58,9 +59,9 @@ function match_content(App $a)
|
|||
}
|
||||
|
||||
if (strlen(Config::get('system', 'directory'))) {
|
||||
$x = post_url(get_server().'/msearch', $params);
|
||||
$x = Network::postURL(get_server().'/msearch', $params);
|
||||
} else {
|
||||
$x = post_url(System::baseUrl() . '/msearch', $params);
|
||||
$x = Network::postURL(System::baseUrl() . '/msearch', $params);
|
||||
}
|
||||
|
||||
$j = json_decode($x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue