WebFingerResource introduced, instead of strict Profile object

This is the beginning of getting notice URI info via WebFinger

*XrdActionLinks is renamed *WebFingerProfileLinks, check EVENTS.txt
in WebFinger plugin for new events.
This commit is contained in:
Mikael Nordfeldth
2013-10-20 15:32:56 +02:00
parent d632df320a
commit e868ebfe77
12 changed files with 243 additions and 187 deletions

View File

@@ -1314,7 +1314,7 @@ class OStatusPlugin extends Plugin
return true;
}
function onEndXrdActionLinks(XML_XRD $xrd, Profile $target)
function onEndWebFingerProfileLinks(XML_XRD $xrd, Profile $target)
{
$xrd->links[] = new XML_XRD_Element_Link(Discovery::UPDATESFROM,
common_local_url('ApiTimelineUser',

View File

@@ -26,7 +26,7 @@ class DiscoveryHints {
foreach ($xrd->links as $link) {
switch ($link->rel) {
case WebFinger::PROFILEPAGE:
case WebFingerResource::PROFILEPAGE:
$hints['profileurl'] = $link->href;
break;
case Salmon::NS_MENTIONS: