]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a description with the bio in it to HTML head
authorEvan Prodromou <evan@prodromou.name>
Thu, 17 Jul 2008 12:47:19 +0000 (08:47 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 17 Jul 2008 12:47:19 +0000 (08:47 -0400)
darcs-hash:20080717124719-84dde-192dd0799905c6fde3bf503c08951d4a308e1e12.gz

actions/showstream.php

index 8980b4de159692c37130da710069d84dfd03c76d..277a9212ea4b77abfd457a4be7898b6dc03ef485 100644 (file)
@@ -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() {