removing the webfinger hack for Notice::asAtomEntry since salmon can use a profile URL

This commit is contained in:
James Walker 2010-02-09 21:50:51 -05:00
parent 46f90f7b08
commit f4ebac5036

View File

@ -220,15 +220,8 @@ class OStatusPlugin extends Plugin
continue;
}
$profile = $notice->getProfile();
$acct = $profile->nickname .'@'. common_config('site', 'server');
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
$xml .= $notice->asAtomEntry();
// TODO : need to set author/uri to webfinger acct. more cleanly
$xml = preg_replace('/<uri>([^<])*<\/uri>/i', '<uri>acct:'.$acct.'</uri>', $xml);
$salmon = new Salmon();
$salmon->post($endpoint_uri, $xml);