diff options
author | Evan Prodromou <evan@status.net> | 2010-09-02 16:58:55 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-09-02 16:58:55 -0400 |
commit | 82b1d6daefc29c870ea71b29ab851153642f270b (patch) | |
tree | 61db5e4fcee85ae0b2e94563e50c78ca794bcf4f /plugins/OStatus/OStatusPlugin.php | |
parent | 7517409bf16137a9d8a420b7358f30fa55945ba0 (diff) | |
parent | ebcd8644a51b66d73971d581789e7c70b82007b2 (diff) |
Merge branch 'swat0' into 0.9.x
Diffstat (limited to 'plugins/OStatus/OStatusPlugin.php')
-rw-r--r-- | plugins/OStatus/OStatusPlugin.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 76ffd511b..f9a8782fa 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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; + } } |