From: Evan Prodromou Date: Thu, 17 Jul 2008 12:47:19 +0000 (-0400) Subject: add a description with the bio in it to HTML head X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=70d99a128969e654a7b644d1f683e62cc081cd7f;p=quix0rs-gnu-social.git add a description with the bio in it to HTML head darcs-hash:20080717124719-84dde-192dd0799905c6fde3bf503c08951d4a308e1e12.gz --- diff --git a/actions/showstream.php b/actions/showstream.php index 8980b4de15..277a9212ea 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -89,6 +89,11 @@ class ShowstreamAction extends StreamAction { common_element('meta', array('http-equiv' => 'X-XRDS-Location', 'content' => common_local_url('xrds', array('nickname' => $user->nickname)))); + $profile = $user->getProfile(); + if ($profile->bio) { + common_element('meta', array('name' => 'description', + 'content' => $profile->bio)); + } } function no_such_user() {