Merge branch 'swat0' into 0.9.x

This commit is contained in:
Evan Prodromou
2010-09-02 16:58:55 -04:00
6 changed files with 105 additions and 18 deletions

View File

@@ -984,4 +984,18 @@ class OStatusPlugin extends Plugin
$feed = $oprofile->feeduri;
return false;
}
function onStartGetProfileFromURI($uri, &$profile) {
// XXX: do discovery here instead (OStatus_profile::ensureProfileURI($uri))
$oprofile = Ostatus_profile::staticGet('uri', $uri);
if (!empty($oprofile) && !$oprofile->isGroup()) {
$profile = $oprofile->localProfile();
return false;
}
return true;
}
}