forked from GNUsocial/gnu-social
make some of the Webfinger magic strings constants
This commit is contained in:
parent
37179a91d5
commit
fde64ddf26
@ -32,11 +32,16 @@ define('WEBFINGER_SERVICE_REL_VALUE', 'lrdd');
|
|||||||
/**
|
/**
|
||||||
* Implement the webfinger protocol.
|
* Implement the webfinger protocol.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Webfinger
|
class Webfinger
|
||||||
{
|
{
|
||||||
|
const PROFILEPAGE = 'http://webfinger.net/rel/profile-page';
|
||||||
|
const UPDATESFROM = 'http://schemas.google.com/g/2010#updates-from';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform a webfinger lookup given an account.
|
* Perform a webfinger lookup given an account.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public function lookup($id)
|
public function lookup($id)
|
||||||
{
|
{
|
||||||
$id = $this->normalize($id);
|
$id = $this->normalize($id);
|
||||||
@ -140,4 +145,3 @@ class Webfinger
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user