summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 22:52:52 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 22:52:52 -0500
commitcc18f757a8e6ef854cae89d8947efac505b1fd7c (patch)
tree85842d31015cd3dfbad7357f40e599cf18932f69 /plugins
parenta745d38d6d1ff336898b24decb54549c72ad1f99 (diff)
hook in OStatusPlugin to return Ostatus_profile URIs where applicable
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OStatus/OStatusPlugin.php10
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;
+ }
}