$parts = parse_url($r[0]["author-link"]);
$host = $parts["scheme"]."://".$parts["host"];
- if (normalise_link($host) != normalise_link($a->get_baseurl())) {
+ if (normalise_link($host) != normalise_link(App::get_baseurl())) {
$location = $host."/p/".urlencode($guid).".xml";
header("HTTP/1.1 301 Moved Permanently");
}
$user = $r[0];
- $status = diaspora::build_status($item[0], $user);
- $xml = diaspora::build_post_xml($status["type"], $status["message"]);
+ $status = Diaspora::build_status($item[0], $user);
+ $xml = Diaspora::build_post_xml($status["type"], $status["message"]);
header("Content-Type: application/xml; charset=utf-8");
echo $xml;