diff options
author | Evan Prodromou <evan@status.net> | 2010-02-21 22:52:52 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-21 22:52:52 -0500 |
commit | cc18f757a8e6ef854cae89d8947efac505b1fd7c (patch) | |
tree | 85842d31015cd3dfbad7357f40e599cf18932f69 /plugins | |
parent | a745d38d6d1ff336898b24decb54549c72ad1f99 (diff) |
hook in OStatusPlugin to return Ostatus_profile URIs where applicable
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/OStatus/OStatusPlugin.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 641765dae..a8c292301 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; + } } |