From: Evan Prodromou Date: Mon, 22 Feb 2010 03:52:52 +0000 (-0500) Subject: hook in OStatusPlugin to return Ostatus_profile URIs where applicable X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cc18f757a8e6ef854cae89d8947efac505b1fd7c;p=quix0rs-gnu-social.git hook in OStatusPlugin to return Ostatus_profile URIs where applicable --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 641765daeb..a8c292301d 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -484,4 +484,14 @@ class OStatusPlugin extends Plugin return true; } + + function onStartGetProfileUri($profile, &$uri) + { + $oprofile = Ostatus_profile::staticGet('profile_id', $profile->id); + if (!empty($oprofile)) { + $uri = $oprofile->uri; + return false; + } + return true; + } }