]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add full name title to notice list link
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:38:26 +0000 (10:38 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:38:26 +0000 (10:38 -0400)
lib/noticelist.php

index 9fc0126b3eb95e4def41607b9540330fe16dd572..8523f2e63ec0e65e3ebf8354c56b00e46246a14d 100644 (file)
@@ -258,8 +258,12 @@ class NoticeListItem extends Widget
     function showAuthor()
     {
         $this->out->elementStart('span', 'vcard author');
-        $this->out->elementStart('a', array('href' => $this->profile->profileurl,
-                                            'class' => 'url'));
+        $attrs = array('href' => $this->profile->profileurl,
+                       'class' => 'url');
+        if (!empty($this->profile->fullname)) {
+            $attrs['title'] = $this->profile->fullname . ' (' . $this->profile->nickname . ') ';
+        }
+        $this->out->elementStart('a', $attrs);
         $this->showAvatar();
         $this->showNickname();
         $this->out->elementEnd('a');