From 334c652e80e9bb9e53116963ec3f794588be4439 Mon Sep 17 00:00:00 2001 From: mikec Date: Mon, 21 Jul 2008 08:00:36 -0400 Subject: Publish MicroIDs for email and mpp on profile and notice pages. darcs-hash:20080721120036-edabd-838335c0e23c80a657d353955b25b52a9a8624b2.gz --- actions/showstream.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'actions/showstream.php') 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() { -- cgit v1.2.3-54-g00ecf