hook in OStatusPlugin to return Ostatus_profile URIs where applicable

This commit is contained in:
Evan Prodromou 2010-02-21 22:52:52 -05:00
parent a745d38d6d
commit cc18f757a8

View File

@ -484,4 +484,14 @@ class OStatusPlugin extends Plugin
return true; return true;
} }
function onStartGetProfileUri($profile, &$uri)
{
$oprofile = Ostatus_profile::staticGet('profile_id', $profile->id);
if (!empty($oprofile)) {
$uri = $oprofile->uri;
return false;
}
return true;
}
} }