forked from GNUsocial/gnu-social
Add an event to get plugin discovery hints from XRD
This commit is contained in:
parent
2aed59a02a
commit
684b9419a0
@ -24,6 +24,7 @@ class DiscoveryHints {
|
||||
{
|
||||
$hints = array();
|
||||
|
||||
if (Event::handle('StartDiscoveryHintsFromXRD', array($xrd, &$hints))) {
|
||||
foreach ($xrd->links as $link) {
|
||||
switch ($link->rel) {
|
||||
case WebFingerResource_Profile::PROFILEPAGE:
|
||||
@ -47,6 +48,8 @@ class DiscoveryHints {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Event::handle('EndDiscoveryHintsFromXRD', array($xrd, &$hints));
|
||||
}
|
||||
|
||||
return $hints;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user