diff options
author | Evan Prodromou <evan@status.net> | 2010-02-25 18:45:08 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-25 18:45:08 -0500 |
commit | 6578e0e1afed8e8738bbcb31d200927e10074f11 (patch) | |
tree | ede3c554fdbc5d1c9c97bbcf8e94ca3e9bba1d3c | |
parent | 76216af806b1a683e1b885724bc68906214209c2 (diff) |
use new dedicated hcard method for Webfinger profile
-rw-r--r-- | plugins/OStatus/actions/webfinger.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/OStatus/actions/webfinger.php b/plugins/OStatus/actions/webfinger.php index 34336a903..d3671962b 100644 --- a/plugins/OStatus/actions/webfinger.php +++ b/plugins/OStatus/actions/webfinger.php @@ -68,7 +68,7 @@ class WebfingerAction extends Action // hCard $xrd->links[] = array('rel' => 'http://microformats.org/profile/hcard', 'type' => 'text/html', - 'href' => common_profile_url($nick)); + 'href' => common_local_url('hcard', array('nickname' => $nick))); // XFN $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11', @@ -78,8 +78,8 @@ class WebfingerAction extends Action $xrd->links[] = array('rel' => 'describedby', 'type' => 'application/rdf+xml', 'href' => common_local_url('foaf', - array('nickname' => $nick))); - + array('nickname' => $nick))); + $salmon_url = common_local_url('salmon', array('id' => $this->user->id)); @@ -93,10 +93,10 @@ class WebfingerAction extends Action $magickey = new Magicsig(); $magickey->generate(); } - + $xrd->links[] = array('rel' => Magicsig::PUBLICKEYREL, 'href' => 'data:application/magic-public-key;'. $magickey->keypair); - + // TODO - finalize where the redirect should go on the publisher $url = common_local_url('ostatussub') . '?profile={uri}'; $xrd->links[] = array('rel' => 'http://ostatus.org/schema/1.0/subscribe', |