X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Ffetch.php;h=c097ee4c46f02418e1a3be5409d7b6df911dc73e;hb=c54a2c1e83822f6e043b449468570d2c9ed3ab3a;hp=085ded3571b35f7121424ac2fd9c62cf710e055e;hpb=2727104a5bbc9a12cd9463fddf3edead66bc7a43;p=friendica.git diff --git a/mod/fetch.php b/mod/fetch.php index 085ded3571..c097ee4c46 100644 --- a/mod/fetch.php +++ b/mod/fetch.php @@ -6,9 +6,7 @@ This file is part of the Diaspora protocol. It is used for fetching single publi use Friendica\App; use Friendica\Core\System; use Friendica\Protocol\Diaspora; -use Friendica\Util\Xml; - -require_once "include/crypto.php"; +use Friendica\Util\XML; function fetch_init(App $a) { @@ -68,12 +66,12 @@ function fetch_init(App $a) } $user = $r[0]; - $status = Diaspora::build_status($item[0], $user); - $xml = Diaspora::build_post_xml($status["type"], $status["message"]); + $status = Diaspora::buildStatus($item[0], $user); + $xml = Diaspora::buildPostXml($status["type"], $status["message"]); // Send the envelope header("Content-Type: application/magic-envelope+xml; charset=utf-8"); - echo Diaspora::build_magic_envelope($xml, $user); + echo Diaspora::buildMagicEnvelope($xml, $user); killme(); }