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

@@ -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: