]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a title to attention notice links
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:17:10 +0000 (10:17 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 30 Mar 2009 14:17:10 +0000 (10:17 -0400)
lib/util.php

index a43666fa5c40f77a131c7fe830ba657447e0587e..7b2930914fd52070553cdfb579010f669dd2bd47 100644 (file)
@@ -622,9 +622,13 @@ function common_at_link($sender_id, $nickname)
             $url = $recipient->profileurl;
         }
         $xs = new XMLStringer(false);
+        $attrs = array('href' => $url,
+                       'class' => 'url');
+        if (!empty($recipient->fullname)) {
+            $attrs['title'] = $recipient->fullname . ' (' . $recipient->nickname . ')';
+        }
         $xs->elementStart('span', 'vcard');
-        $xs->elementStart('a', array('href' => $url,
-                                     'class' => 'url'));
+        $xs->elementStart('a', $attrs);
         $xs->element('span', 'fn nickname', $nickname);
         $xs->elementEnd('a');
         $xs->elementEnd('span');