]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show best name in noticelistitem
authorEvan Prodromou <evan@status.net>
Sat, 16 Apr 2011 15:22:46 +0000 (11:22 -0400)
committerEvan Prodromou <evan@status.net>
Sat, 16 Apr 2011 15:22:46 +0000 (11:22 -0400)
lib/noticelistitem.php

index 9c509664060523c1964f379dcdc8720c0f0cfa3b..f7b28534bef6d5efd8def301e32c8b517d4cd184 100644 (file)
@@ -202,20 +202,21 @@ class NoticeListItem extends Widget
      *
      * @return void
      */
+
     function showAuthor()
     {
-        $this->out->elementStart('span', 'vcard author');
+        $this->out->elementStart('div', 'vcard author');
         $attrs = array('href' => $this->profile->profileurl,
-                       'class' => 'url');
-        if (!empty($this->profile->fullname)) {
-            $attrs['title'] = $this->profile->getFancyName();
-        }
+                       'class' => 'url',
+                       'title' => $this->profile->nickname);
         $this->out->elementStart('a', $attrs);
         $this->showAvatar();
-        $this->out->text(' ');
-        $this->showNickname();
         $this->out->elementEnd('a');
-        $this->out->elementEnd('span');
+        $this->out->element('a', array('href' => $this->profile->profileurl,
+                                       'class' => 'url nickname fn',
+                                       'title' => $this->profile->nickname),
+                            $this->profile->getBestName());
+        $this->out->elementEnd('div');
     }
 
     /**