moving references to Webfinger to Discovery

This commit is contained in:
James Walker 2010-02-25 17:34:56 -05:00
parent bd90ef9f66
commit 5ae64a7adb
3 changed files with 9 additions and 9 deletions

View File

@ -131,9 +131,9 @@ class OStatusInitAction extends Action
function connectWebfinger($acct)
{
$w = new Webfinger;
$disco = new Discovery;
$result = $w->lookup($acct);
$result = $disco->lookup($acct);
if (!$result) {
$this->clientError(_m("Couldn't look up OStatus account profile."));
}

View File

@ -40,7 +40,7 @@ class WebfingerAction extends Action
function handle()
{
$acct = Webfinger::normalize($this->uri);
$acct = Discovery::normalize($this->uri);
$xrd = new XRD();
@ -55,11 +55,11 @@ class WebfingerAction extends Action
$xrd->subject = $this->uri;
$xrd->alias[] = common_profile_url($nick);
$xrd->links[] = array('rel' => Webfinger::PROFILEPAGE,
$xrd->links[] = array('rel' => Discovery::PROFILEPAGE,
'type' => 'text/html',
'href' => common_profile_url($nick));
$xrd->links[] = array('rel' => Webfinger::UPDATESFROM,
$xrd->links[] = array('rel' => Discovery::UPDATESFROM,
'href' => common_local_url('ApiTimelineUser',
array('id' => $this->user->id,
'format' => 'atom')),

View File

@ -1328,9 +1328,9 @@ class Ostatus_profile extends Memcached_DataObject
// Now, try some discovery
$wf = new Webfinger();
$disco = new Discovery();
$result = $wf->lookup($addr);
$result = $disco->lookup($addr);
if (!$result) {
return null;
@ -1338,13 +1338,13 @@ class Ostatus_profile extends Memcached_DataObject
foreach ($result->links as $link) {
switch ($link['rel']) {
case Webfinger::PROFILEPAGE:
case Discovery::PROFILEPAGE:
$profileUrl = $link['href'];
break;
case 'salmon':
$salmonEndpoint = $link['href'];
break;
case Webfinger::UPDATESFROM:
case Discovery::UPDATESFROM:
$feedUrl = $link['href'];
break;
default: