diff options
author | mikec <mikec@mikenz.geek.nz> | 2008-07-21 08:00:36 -0400 |
---|---|---|
committer | mikec <mikec@mikenz.geek.nz> | 2008-07-21 08:00:36 -0400 |
commit | 334c652e80e9bb9e53116963ec3f794588be4439 (patch) | |
tree | dffb674f2e3da0365a7514f563d4667069628b66 /actions/showstream.php | |
parent | fbf2a58ac3beafea0a0e4031037b52e737bdd384 (diff) |
Publish MicroIDs for email and mpp on profile and notice pages.
darcs-hash:20080721120036-edabd-838335c0e23c80a657d353955b25b52a9a8624b2.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r-- | actions/showstream.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actions/showstream.php b/actions/showstream.php index 8b473f76a..fba68d129 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -94,6 +94,16 @@ class ShowstreamAction extends StreamAction { common_element('meta', array('name' => 'description', 'content' => $profile->bio)); } + + if ($user->emailmicroid && $user->email && $profile->profileurl) { + common_element('meta', array('name' => 'microid', + 'content' => "mailto+http:sha1:" . sha1(sha1('mailto:' . $user->email) . sha1($profile->profileurl)))); + } + if ($user->jabbermicroid && $user->jabber && $profile->profileurl) { + common_element('meta', array('name' => 'microid', + 'content' => "xmpp+http:sha1:" . sha1(sha1('xmpp:' . $user->jabber) . sha1($profile->profileurl)))); + } + } function no_such_user() { |